Title: help creating admin page for plugin
Last modified: August 18, 2016

---

# help creating admin page for plugin

 *  [stratego](https://wordpress.org/support/users/stratego/)
 * (@stratego)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/help-creating-admin-page-for-plugin/)
 * I am new to php and to writing WP plugins, but I have successfully written a 
   plugin. It is a simple search and replace thing, but a good place to start. I
   am trying to create an admin page where the user can make selections that will
   effect what the plugin searches for and replaces with. Right now I am just trying
   to get a blank admin page added to WP. From reading and looking at other plugins
   I have come up with this:
 * function plugin_add() {
    if (function_exists(‘add_options_page’)) { add_options_page(‘
   plugin’, ‘plugin’, 0, basename(__FILE__), ‘plugin_subpanel’); } }
 * add_action(‘admin_menu’, ‘plugin_add’);
 * now what happens when I activate it, the page goes blank, if I acces wp-admin,
   the new menu is there, under options, and it will allow me to see the blank admin
   page. Well, that is the case in Firefox. In IE I can view the blog, but any attempt
   to login ar acces wp-admin just leads to blank screen. I have tried on both WP
   2.1.3 and 2.0.4
    Any help much appreciated

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

 *  [rudolf45](https://wordpress.org/support/users/rudolf45/)
 * (@rudolf45)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/help-creating-admin-page-for-plugin/#post-554250)
 * Maybe take a look how this plugin handles it 🙂
    [http://thedeadone.net/?p=183](http://thedeadone.net/?p=183)
 *  Thread Starter [stratego](https://wordpress.org/support/users/stratego/)
 * (@stratego)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/help-creating-admin-page-for-plugin/#post-554342)
 * thanks, that was a big help, we’ll see what happens as it develops, actionas 
   and filters are still a little grey for me, but the admin page is working now.

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

The topic ‘help creating admin page for plugin’ is closed to new replies.

## Tags

 * [Blank](https://wordpress.org/support/topic-tag/blank/)

 * 2 replies
 * 2 participants
 * Last reply from: [stratego](https://wordpress.org/support/users/stratego/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/help-creating-admin-page-for-plugin/#post-554342)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
