jcs/item_title

Filter Example

Display the dynamic menu type at the end of the item title.

add_filter('jcs/item_title', 'jc_edit_item_title', 10, 3);
function jc_edit_item_title($title, $item_id, $item_type){
 
    if($item_type == 'term'){
        $title .= ' (term)';
    }elseif($item_type == 'page'){
        $title .= ' (page)';
    }else{
        $title .= " ($item_type)";
    }
 
    return $title;
}