Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp menu declaration

function register_my_menus() {
  register_nav_menus(
    array(
      'header-menu' => __( 'Header Menu' ),
      'extra-menu' => __( 'Extra Menu' )
    )
  );
}
add_action( 'init', 'register_my_menus' );
Source by codex.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wp #menu #declaration
ADD COMMENT
Topic
Name
9+6 =