WordPress.org

Make WordPress Core

Ticket #23119: demo_theme_locations.php

File demo_theme_locations.php, 251 bytes (added by DrewAPicture, 17 months ago)

Demo Plugin: Adds 3 theme locations

Line 
1<?php
2/**
3 * Plugin Name: Demo Theme Locations
4 * Version: 0.1
5 */
6
7if ( function_exists( 'register_nav_menus' ) ) {
8        register_nav_menus( array(
9                'test-menu-1' => 'Location 1',
10                'test-menu-2' => 'Location 2',
11                'test-menu-3' => 'Location 3'
12        ) );
13}