Support » Networking WordPress » Wp_login Action Hook Doesn't Work in Network Mode?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you activating the plug-in in exactly the same way (i.e. uploading it to your /wp-content/plugins/ directory, then clicking the “Activate” link in the plugin administration area) on both installations?

    Into which action(s), if any, are you hooking your function?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Not all plugins will (and can) work when activated sitewide.

    Did you try activating it PER site? If that works, it may be because of how it creates tables and functions per site.

    I’m only activating it as admin and not for everyone who has an account. I don’t want the users to see the plugin or be able to delete or deactivate it. Are there no hooks for admin use that will activate for every wordpress user?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Well, you could try using mu-plugins.

    Read this: http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Are there no hooks for admin use that will activate for every wordpress user?

    There’s the mu-plugins folder for code you want to run all the time and not be disabled.
    http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/

    the login/logout that is in themes works exactly the same when the network is enabled. Not sure what you;re doing though.

    Thanks Ipstenu and Andrea_r, I’ll check that out. Wasn’t aware of it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wp_login Action Hook Doesn't Work in Network Mode?’ is closed to new replies.