Support » Plugins and Hacks » [Resolved] My First WordPress Plugin

[Resolved] My First WordPress Plugin

  • This is my first attempt at a wordPress plugin and I am having trouble getting the test options to appear in the dashboard

    Plugin Name: Dev Profile
    Plugin URI:
    Description: Description goes here
    Version: 0.1
    Author: Thomas Henson
    add_action( 'admin_menu', 'The Profile Picture' );
    function my_plugin_menu() {
    	add_options_page( 'Dev Profile', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options' );
    function my_plugin_options() {
    	if ( !current_user_can( 'manage_options' ) )  {
    		wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
    	echo '<div class="wrap">';
    	echo '<p>Here is where the form would go if I actually had options.</p>';
    	echo '</div>';
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] My First WordPress Plugin’ is closed to new replies.
Skip to toolbar