latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Locking s2Member Roles/Capabilities

Home Forums Community Forum Unofficial Extensions/Hacks Locking s2Member Roles/Capabilities

This topic contains 0 replies, has 1 voice. Last updated by  Jason (Lead Developer) 4 years, 10 months ago.

Topic Author Topic
Posted: Tuesday Mar 6th, 2012 at 1:05 am #7380
Staff Member

Hack Description

If you've customized your WordPress Roles/Capabilities (in more advanced ways), and you'd like to make sure s2Member does NOT reset it's default set of Roles/Capabilities when you upgrade in the future, this hack is for you.

Hack Instructions

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)

<?php
	add_filter("ws_plugin__s2member_lock_roles_caps", "__return_true");
?>

* This will prevent future upgrades from resetting/re-configuring your Roles/Caps.

* In addition, this will disable the Reset Roles/Capabilities button in the Dashboard, under:
s2Member -> General Options -> Membership Levels/Labels.

Actually, the Reset Roles/Capabilities button is not disabled completely, but clicking the button does no good, because s2Member will simply return a message indicating that Roles/Capabilities have been locked by this Filter.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.