acf/admin/toolbar
Filters the admin navigation more items.
Usage
add_filter( 'acf/admin/toolbar', 'wp_kama_acf_admin_toolbar_filter' );
/**
* Function for `acf/admin/toolbar` filter-hook.
*
* @param array $more_items The array of navigation tabs.
*
* @return array
*/
function wp_kama_acf_admin_toolbar_filter( $more_items ){
// filter...
return $more_items;
}
- $more_items(array)
- The array of navigation tabs.
Changelog
| Since 5.9.0 | Introduced. |
Where the hook is called
acf/admin/toolbar
acf/includes/admin/views/global/navigation.php 121
$more_items = apply_filters( 'acf/admin/toolbar', $more_items );