bluesmokellc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Subscribers redirected to home pagePersonal experience with WordPress?
Forum: Fixing WordPress
In reply to: Subscribers redirected to home pageAnd I already agreed that rule is fair. But I wasn’t asking you to support the theme. I was asking what function would someone use to accomplish this, so I could find it and delete it.
The correct answer was “restrict_admin()” which I found thanks to some helpful people at wordpress.stackoverflow.com.
Like I said, the rule makes sense, but you’re using it as an excuse to not be helpful in a matter where it does not apply. If I had never mentioned the theme in the first place, and only asked for the function, would you have still brushed me off?
I get that you probably deal with hundreds of these mundane threads every day, and that has left you jaded, so I apologize for any hostility caused by my frustration. I appreciate the work that you do.
Forum: Fixing WordPress
In reply to: Subscribers redirected to home pageI tried that. It was the theme.
Here is what I found in the theme’s functions.php file:
function wpse_11244_restrict_admin() { if ( ! current_user_can( 'manage_options' ) && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) { wp_redirect( home_url() ); } } add_action( 'admin_init', 'wpse_11244_restrict_admin', 1 );
As you can see, the function is redirecting users that don’t have admin privileges to the homepage. If you are building a website that has members and you want them to edit their profile from the frontend, check out the free version of ProfileBuilder and Advanced Access Manager. Those two plugins combined will do the trick.
Thanks again for nothing, WordPress “Support” forum.
Forum: Fixing WordPress
In reply to: Subscribers redirected to home pageNo I can’t, so it’s either a theme or a plugin issue. And the theme developer hasn’t answered any support requests in months (this is what I get for not properly vetting the theme before buying it).
Let me rephrase the question in a way that satisfies your forum rules (which are completely reasonable):
How would you redirect subscribers to the home page when they try to access the dashboard?