Skip to content

Instantly share code, notes, and snippets.

@deepak-rajpal
Created September 14, 2015 16:06
Show Gist options
  • Save deepak-rajpal/2af98f70a259769f6c70 to your computer and use it in GitHub Desktop.
Save deepak-rajpal/2af98f70a259769f6c70 to your computer and use it in GitHub Desktop.
Commonly Used and Popular WordPress Functions
<?php
/* Starts: Registering Custom Menus */
function register_custom_menus() {
register_nav_menus(
array(
'header-top-area-1' => __( 'Header Top Area - 1' ),
'header-top-area-2' => __( 'Header Top Area - 2' ),
'site-navigation-menu' => __( 'Site Navigation Area' ),
'footer-area-1' => __( 'Footer Area' ),
)
);
}
add_action( 'init', 'register_custom_menus' );
/* Ends: Registering Custom Menus */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment