Filter: bricks/elements/nav_menu/menus
Filters the nav menus shown in the Nav Menu element while in the builder. Return an array of menu objects to override the menus Bricks loads from WordPress.
Parameters
Section titled “Parameters”$menus(array|null): Menus to use in the builder. Return null to let Bricks fall back to wp_get_nav_menus().
Example usage
Section titled “Example usage”add_filter( 'bricks/elements/nav_menu/menus', function( $menus ) { return wp_get_nav_menus();} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.