bellows_menu_item_data
This filter allows you to filter the Bellows-specific menu item settings for a given menu item
$data
An associative array of menu item settings for this menu item, keyed by the setting IDs. The filter callback should return
$data
.$item
The WordPress menu item object.
Example: Disable Links on all items that have submenus
add_filter( 'bellows_menu_item_data', 'bam_filter_items', 10, 2 ); function bam_filter_items( $data, $item ){ if( !is_array( $data ) ) $data = []; if( $item->has_sub === 1 ){ $data['disable_link'] = 'on'; } return $data; }