• Orlando

    (@orlandomario)


    I have a multisite running “paid membership pro” plugin and I would like to activate/deactivate plugins based on membership levels. I’ve tried various existing plugins but none works for what I’m looking for, I want it to be automatic. I think I read somewhere that I can’t use register_activation_hook in mu-plugins. So I think I’m stuck.

    The logic behind it is this:
    1. check for membership level (using pmpro_hasMembershipLevel($level) function)
    2. check if plugin is inactive
    3. if inactive activate

    Does anyone have any idea on how to do something like this? I’d really appreciate it

The topic ‘Activate/Deactivate plugins from a mu-plugin’ is closed to new replies.