bellows_auto_post_title
bellows_auto_post_title
This filter allows you to filter the the title of menu items that are displayed in Post Hierarchy Autopopulation menus
$item_title
The title of the menu item (the post’s title).
Example: Replace item title with a custom meta field
function bam_auto_post_title( $item_title, $post ){
$custom_title = get_post_meta( $post->ID, 'custom_nav_label', true );
if( $custom_title ) return $custom_title;
return $item_title;
}
add_filter( 'bellows_auto_post_title' , 'bam_auto_post_title' , 10 , 2);