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.

Redirect Members Redirects Adminstrators

Home Forums Community Forum Redirect Members Redirects Adminstrators

This topic contains 1 reply, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 11 months ago.

Topic Author Topic
Posted: Thursday Jan 24th, 2013 at 1:42 am #39289
Linc
Username: lincxx

Hi there,

Searched the forums and couldn’t find an answer for this. Need some help.

Under General Options –> Member Profile Modifications –> Redirect Members away from the Default Profile Panel? –> Yes

It redirects everyone which is great. However it redirects my Super Admin accounts when trying to edit their personal profile.

The redirect feature is great but is there a way to circumvent this just for Super Admins?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Jan 24th, 2013 at 5:24 am #39346
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

s2Member will redirect anyone that does not have the edit_posts Capability.

You can filter this if you like with a hack file.

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

<?php
add_filter('ws_plugin__s2member_login_redirect', 's2_login_redirect', 10, 2);
function s2_login_redirect($what_s2_says, $vars = array())
	{
		$user = $vars&#91;'user'&#93;;
		
		if(!$user->has_cap('edit_posts')) // Change the Capability here if you like.
			return FALSE;
		
		return $what_s2_says; // Default return value.
	}
Viewing 1 replies (of 1 total)

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.