bellows_icon_custom_class

bellows_icon_custom_class

This filter allows you to filter the icon class for individual items

$icon_class
The icon class as a string.
$item_id
The ID of the menu item.
$custom_class
Any custom classes that were set for the item.

Example: Add a rocket icon to every item

add_filter( 'bellows_icon_custom_class' , 'bellows_icon_filter' , 10 , 3 );
function bellows_icon_filter( $icon_classes , $item_id , $custom_class ){
	$icon_classes.= ' fa fa-rocket';
	return $icon_classes;
}

On this page