Filter: bricks/elements/nav_menu/name
Filters a nav menu label shown in the Nav Menu element. Use it to adjust menu names in the builder, for example by appending language or site context.
Parameters
Section titled “Parameters”$name(string): The menu name.$menu(WP_Term): The nav menu term object.
Example usage
Section titled “Example usage”add_filter( 'bricks/elements/nav_menu/name', function( $name, $menu ) { return $name . ' (' . $menu->term_id . ')';}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.