Title: Get current plugin from loaded admin page
Last modified: August 30, 2016

---

# Get current plugin from loaded admin page

 *  [Jamel.Z](https://wordpress.org/support/users/lebleut/)
 * (@lebleut)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/)
 * Hi
 * in the admin side I wanted to create a function which returns the name of the
   current plugin
 * something like this:
 *     ```
       $current_plugin_name=get_current_plugin();
       ```
   

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/#post-6544540)
 * “current plugin” is not a common term, please expand on what you mean by this
   and why you want this information. Plugins are typically active or inactive, 
   never current except perhaps if a plugin has its own settings page — many do 
   not.
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/#post-6544551)
 * Consider get_current_screen()
 *  Thread Starter [Jamel.Z](https://wordpress.org/support/users/lebleut/)
 * (@lebleut)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/#post-6544575)
 * I just wanted to know which screen belongs to which plugin
 * Yes Jerry **get_current_screen()** is the best function I found in this issue
   it provides some information about the screen but not the name of the plugin !
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/#post-6544595)
 * There’s no requirement for plugins to have a specific way of identifying their
   screens, and there’s no consistent way plugins name or identify their screens,
   so there is no reliable way to determine this by script for any random plugin.

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

The topic ‘Get current plugin from loaded admin page’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 4 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/get-current-plugin-from-loaded-admin-page/#post-6544595)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
