The members app()->namespace . '/remove toolbar items' hook.
Published Date - July 31, 2023
apply_filters( app()->namespace . '/remove_toolbar_items', $items );
$items
The following example is for adding a hook callback.
// define the app()->namespace . '/remove_toolbar_items' callback
function custom_app()->namespace . '_remove_toolbar_items'( $items ){
//custom code here
return $items
}
//add the action
add_filter('app()->namespace . '/remove_toolbar_items'', 'custom_app()->namespace . '/remove_toolbar_items'', 10, 1)
The filter is defined in the following location(s).
members/addons/members-admin-access/app/functions.php
apply_filters( app()->namespace . '/remove_toolbar_items', $items );