|Posted: Tuesday Jun 4th, 2013 at 11:55 pm #51387|
We have a website with S2Member’s Login-Welcome-Screen providing multiple levels of User capabilities, logos, descriptions etc.
Any attempt to edit posts, pages etc send the user to this page. So far so good.
I want to add a button on the page that now allows the user to create a new post. But if the user clicks the button he’s sent back to the login-welcome-page which is not the behavior I want.
So, I added an Ajax call that removes the ws_plugin__s2member_login redirect filter (as exampled in createing-a-user-managed-role) and then does a wp_redirect to the edit post page but that’s not working either
Any ideas how to correctly allow a logged in user to edit a post *from the login-welcome-page*.
- s2Member® Products