Title: Undefined function add_submenu_page
Last modified: August 19, 2016

---

# Undefined function add_submenu_page

 *  Resolved [Neji87](https://wordpress.org/support/users/neji87/)
 * (@neji87)
 * [15 years ago](https://wordpress.org/support/topic/undefined-function-add_submenu_page-1/)
 * I’m trying to code a plug-in, just something so that I can learn how to do such
   a thing. I’ve coded one plug-in already which works great. However, I’m totally
   stuck on the next.
 * My code is below and I’m getting the following error:
    Fatal error: Call to undefined
   function add_submenu_page() in C:\web\www\kelly\wp-content\plugins\biography\
   index.php on line 47
 * The error is confusing because it’s almost the same as the other plug-in I made.
   What am I missing?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 *  Thread Starter [Neji87](https://wordpress.org/support/users/neji87/)
 * (@neji87)
 * [15 years ago](https://wordpress.org/support/topic/undefined-function-add_submenu_page-1/#post-2071926)
 * Couldn’t find the edit button so I’m replying to show the link to my code.
 * [http://pastebin.com/DPtEfMC6](http://pastebin.com/DPtEfMC6)
 *  Thread Starter [Neji87](https://wordpress.org/support/users/neji87/)
 * (@neji87)
 * [15 years ago](https://wordpress.org/support/topic/undefined-function-add_submenu_page-1/#post-2072035)
 * Fixed this, just thought I’d post on the off chance that anyone else encounters
   it.
 * I still a little confused but I simply changed the name of the plug-in to something
   else and it worked. I guess that ‘Biography’ was clashing with something.

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

The topic ‘Undefined function add_submenu_page’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 1 participant
 * Last reply from: [Neji87](https://wordpress.org/support/users/neji87/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/undefined-function-add_submenu_page-1/#post-2072035)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
