jcs/item_classes

Example

Add extra classes to menu items containing their item type.

add_action( 'jcs/item_classes', 'jc_edit_item_classes', 10, 3 );
function jc_edit_item_classes($classes, $item_id, $item_type){
 
    $classes[] = "item-$item_type";
    return $classes;
}