Created
February 5, 2013 10:32
-
-
Save michaeluno/4713595 to your computer and use it in GitHub Desktop.
A simple admin page template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Plugin Name: My Admin Page Template */ | |
add_action( 'admin_menu', 'my_admin_menu_func' ); | |
function my_admin_menu_func() { | |
add_options_page( "My Admin Page", "My Admin Page", "manage_options", "my_admin_page_slug", "my_admin_page_func" ); | |
} | |
function my_admin_page_func() { | |
?> | |
<div class="wrap"> | |
<h2>My Admin Page</h2> | |
<p>Hello world!</p> | |
</div> | |
<?php | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment