WordPress.org

Make WordPress Core

Ticket #785: menu-test.php

File menu-test.php, 507 bytes (added by morganiq, 9 years ago)
Line 
1<?php
2/*
3Plugin Name: Menu Test
4Plugin URI: http://wordpress.org/#
5Description: Menu Test
6Author: Nobody
7Author URI: http://nobody.net/
8*/ 
9
10function mt_add_pages() {
11        add_options_page('Test Options', 'Test Options', 8, __FILE__, 'mt_options_page');
12       
13        add_management_page('Test Manage', 'Test Manage', 8, __FILE__, 'mt_manage_page');
14}
15
16function mt_options_page() {
17        echo "<h2>Test Options</h2>";
18}
19
20function mt_manage_page() {
21        echo "<h2>Test Manage</h2>";
22}
23
24add_action('admin_menu', 'mt_add_pages');
25?>