diff --git a/includes/MslsAdminIcon.php b/includes/MslsAdminIcon.php index bfec183a..ec101203 100644 --- a/includes/MslsAdminIcon.php +++ b/includes/MslsAdminIcon.php @@ -228,7 +228,16 @@ public function get_a(): string { */ public function get_icon(): string { if ( 'flag' === $this->iconType ) { - return ! is_string( $this->language ) ? '' : sprintf( '%s', + /** + * Use your own filename for the flag-icon + * @since 2.6.1 + * + * @param MslsAdminIcon $icon + * @param string $language + */ + $icon = apply_filters( 'msls_options_admin_get_flag_icon', $this, $this->language ); + + return sprintf( '%s', ( new IconSvg() )->get( $this->language ), $this->language );