Skip to content

Instantly share code, notes, and snippets.

@Skystream96
Created September 10, 2021 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skystream96/3e2d721abb32bab8e96f7c4207fafeb1 to your computer and use it in GitHub Desktop.
Save Skystream96/3e2d721abb32bab8e96f7c4207fafeb1 to your computer and use it in GitHub Desktop.
Function to remove certain fonts from Menu Icons Plugin
function my_remove_menu_icons_type( $types ) {
// Dashicons
//unset( $types['dashicons'] );
// Elusive
//unset( $types['elusive'] );
// Font Awesome
//unset( $types['fa'] );
// Foundation
//unset( $types['foundation-icons'] );
// Genericons
//unset( $types['genericon'] );
// Image
//unset( $types['image'] );
return $types;
}
add_filter( 'menu_icons_types', 'my_remove_menu_icons_type' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment