Title: custom admin page using functions.php
Last modified: August 19, 2016

---

# custom admin page using functions.php

 *  [kevcpu](https://wordpress.org/support/users/kevcpu/)
 * (@kevcpu)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/custom-admin-page-using-functionsphp/)
 * Will the example outlined in, [http://codex.wordpress.org/Adding_Administration_Menus](http://codex.wordpress.org/Adding_Administration_Menus),
   work when you have to create a new admin. page? One of the parameters for add_options_page()
   calls for a file name but I only have the functions I added to functions.php.
   What should the parameter list look like in this scenario?

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

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/custom-admin-page-using-functionsphp/#post-1583076)
 * Where does it say it needs a file name?
 * Please clarify what you’re referring to, do you mean one of the arguments/parameters
   for `add_options_page`?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/custom-admin-page-using-functionsphp/#post-1583368)
 * Looking back i think i know what you were getting at, the functions `add_%type%
   _page` require a callback function or file..
 * The parameter you were referring to before can be passed the URL of a file OR!
   a function name to act as a callback function.
 * Posting incase others stumble onto the thread looking for the answer (and/or 
   incase the original poster never figured it out).. 🙂

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

The topic ‘custom admin page using functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/custom-admin-page-using-functionsphp/#post-1583368)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
