Set Users without Membership can subscribe" option to deny

Looking for a way to set Users without Membership can subscribe" option to deny for all memberships with a custom code or SQL query. I have more than 200 memberships and manually do this for each membership it is time-consuming

  • Panos

    Hi thee Jing ,

    You can try the mu-plugin from here:

    First test this on a staging site. Also make sure you have kept a backup of your site first.

    Download zip from link above and upload the php file to your wp-content/mu-plugins folder. If that folder doesn't exist you can simply create it.

    In order to run the script, visit:

    This should set that option to Deny for ALL memberships. You can change true to false so it sets them all to Allow instead.

    Since you got 200 memberships, depending on your server resources, there is a small chance it will timeout, so it won't complete the task for all of the memberships. In that case please let me know so we could try split it to smaller chunks.

    Hope this helps!

    Kind regards!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.