How to hide more then 1 id inside the toolbar
-
Hello, based on this code what if I want to hide ‘SOMETHING’ and ‘SOMEWHERE’ ?
/**
* Filter hidden Toolbar menus on the front-end.
*
* @param array $ids Toolbar menu IDs.
* @return array (maybe) filtered front-end Toolbar menu IDs.
*/
function wpdocs_hide_some_toolbar_menu( $ids ) {
$ids[] = ‘SOMETHING’;
return $ids;
}
add_filter( ‘rda_frontend_toolbar_nodes’, ‘wpdocs_hide_some_toolbar_menu’ );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to hide more then 1 id inside the toolbar’ is closed to new replies.