Title: My First WordPress Plugin
Last modified: August 20, 2016

---

# My First WordPress Plugin

 *  Resolved [tmhenson](https://wordpress.org/support/users/tmhenson/)
 * (@tmhenson)
 * [14 years ago](https://wordpress.org/support/topic/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
 *     ```
       <?php
   
       /*
       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)

 *  [Amy Hendrix (sabreuse)](https://wordpress.org/support/users/sabreuse/)
 * (@sabreuse)
 * [14 years ago](https://wordpress.org/support/topic/my-first-wordpress-plugin/#post-2747886)
 * What happens if you change the `add_action` line to
 * `add_action( 'admin_menu', 'my_plugin_menu' );`
 * It’s looking for a function name there.
 *  Thread Starter [tmhenson](https://wordpress.org/support/users/tmhenson/)
 * (@tmhenson)
 * [14 years ago](https://wordpress.org/support/topic/my-first-wordpress-plugin/#post-2747985)
 * That worked thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘My First WordPress Plugin’ is closed to new replies.

## Tags

 * [plugin-development](https://wordpress.org/support/topic-tag/plugin-development/)

 * 2 replies
 * 2 participants
 * Last reply from: [tmhenson](https://wordpress.org/support/users/tmhenson/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/my-first-wordpress-plugin/#post-2747985)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
