Shashi27

functions.php

Jul 1st, 2014
270
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php function register_my_menu() {
  2.   register_nav_menu('header-menu',__( 'Header Menu' ));
  3. }
  4. add_action( 'init', 'register_my_menu' );
  5. function register_my_menus() {
  6.   register_nav_menus(
  7.     array(
  8.       'header-menu' => __( 'Header Menu' ),
  9.       'extra-menu' => __( 'Extra Menu' )
  10.     )
  11.   );
  12. }add_action( 'init', 'register_my_menus' );?>
RAW Paste Data