Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mysticalcode

    (@mysticalcode)

    Hi @hwk-fr,

    This is helpful, mate. I’ll give it a go.

    Je te remercie.

    Cheers,
    M

    Thread Starter mysticalcode

    (@mysticalcode)

    Thanks, @bcworkz,

    “load-{$plugin_page}” fires when a plugin’s admin page is loaded. There are likely no callbacks added since WP loads the admin page anyway. The action is there for plugin developer use if they need to execute code before a plugin’s admin page is loaded. This way someone could influence one plugin’s behaviour from another plugin, provided they know the right page ID.

    I guess I got fixated with menu structures where a plugin’s admin pages are called. I’ll do some experimentation to understand it better. This one is particularly interesting as well:

    The “load-$something” format is applied in other contexts besides plugin admin pages. It all depends on what value is passed for $something. It generally fires just before some PHP file is required or included.

    I’ll have a play with “admin_action_{$action}” as well.

    Again, thank you. I hope you’re well.

    Cheers,
    M

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