Title: Admin Panel additions
Last modified: August 18, 2016

---

# Admin Panel additions

 *  [zeeg](https://wordpress.org/support/users/zeeg/)
 * (@zeeg)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/)
 * I’m not sure if this is intended, but when I had my plugin named xgallery.php
   and I added a hook to include the “xgallery.php” in wp-admin/ to the Manage tab,
   it error’d because it was the same name, it tried reloading the plugin file, 
   it worked fine once i made it xgallery-options.php in the wp-admin/ and changed
   the link in the hook

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

 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/#post-134142)
 * Doing it all in one file requires some special handling. function_exists() must
   be used to avoid defining the functions twice.
 *  Thread Starter [zeeg](https://wordpress.org/support/users/zeeg/)
 * (@zeeg)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/#post-134331)
 * No thats not the thing, I had `wp-admin/xgallery.php` and `wp-content/plugins/
   xgallery.php`, when I set the plugin file to add `xgallery.php` to the admin 
   menu, and i clicked it, it tried loading up the `plugins/xgallery.php` instead
   of the `wp-admin/xgallery.php`
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/#post-134352)
 * All plugins and plugin pages must be in the plugins directory or a subdirectory
   thereof. You can create an xgallery subdirectory in plugins/ and put xgallery.
   php and xgallery-admin.php in there.
 *  Thread Starter [zeeg](https://wordpress.org/support/users/zeeg/)
 * (@zeeg)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/#post-134415)
 * ooo didnt know it could load from there 🙂
    thanks

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

The topic ‘Admin Panel additions’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [zeeg](https://wordpress.org/support/users/zeeg/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/admin-panel-additions/#post-134415)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
