PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
Wordpress has a hidden login redirect form in the wp-login.php file. Should that be removed as well?
http://yoursite.com/wp-login.php?redirect_to=/the-page-you-want
Vinnyo wrote:Hey Jason,
OK well this makes sense then. However I need to have my users be able to edit posts..is there a way to allow the redirect and allow users to edit posts.
Basically is there some code I can delete or remove to allow this to happen on both ends.
Thanks
Vince
<?php
add_filter("ws_plugin__s2member_login_redirect", "__return_true");
?>
<?php
add_filter ("ws_plugin__s2member_login_redirect", "my_function", 10, 2);
function my_function ($filter, $vars = array ())
{
if ($vars["user"]->has_cap ("s2member_level1"))
return true;
/**/
else return $filter;
}
?>
Users browsing this forum: Yahoo [Bot] and 2 guests