• 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

    (@bcworkz)

    “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.

    Consider get_current_screen()

    Thread Starter Jamel.Z

    (@lebleut)

    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

    (@bcworkz)

    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.