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.

EOT Demotion Level – DELETE

Home Forums Community Forum EOT Demotion Level – DELETE

This topic contains 0 replies, has 1 voice. Last updated by  Fernando Caldito 3 years, 1 month ago.

Topic Author Topic
Posted: Monday Nov 25th, 2013 at 12:22 pm #61354

I need users are signing up with Level 1, demoted to level 0 after EOT (free subscriber)
but level 3 or 2 are removed.

Looking forum , found this hook but failed to properly modify.


Create this directory and file: /wp-content/mu-plugins/s2hacks.php

<?php
add_filter('ws_plugin__s2member_force_demotion_role', 'my_demotion_role');
function my_demotion_role($role = 'subscriber') {
	if (current_user_is('s2member_level3') || current_user_is('s2member_level2'))
		$role = 's2member_level1';
	return $role;
}

a serious option?

if active in “Automatic EOT Behavior”
“Delete (erase Their account completely)”

and change the hook

<?php
add_filter('ws_plugin__s2member_force_demotion_role', 'my_demotion_role');
function my_demotion_role($role = 'subscriber') {
	if (current_user_is('s2member_level3') || current_user_is('s2member_level2'))
		$role = 'delete';
	return $role;
}

as I call “delete role” in programming ?

sorry for my English.

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.