Tell us what you are trying to do?
I am trying to get a specific group of users to approve new entries (submitted through 'create' form) on the front-end (through 'edit' form). They should never be redirected to the backend.
What's happening instead:
I have been working on a front-end system including:
- a ‘create’ form = a submission form visible to any one on the site that allows to create new entries of a custom content type.
- an ‘edit’ form accessible only to specific users so that they can edit and actually approve new entries submitted through the ‘create’ form (entries appear as pending until they are approved).
Those users who will approve the new entries are not familiar with the WordPress background and I would like to avoid for them to have to do anything there; hence the front-end ‘edit’ form.
I have added a WP login box so that they can log in and see the ‘edit’ button. My problem is that when a user log in, they are redirected by default to the backend…
What I need is for them to stay on the page where they are after logging in. Is that possible at all?
Are you using the regular WordPress login page or a custom login page made with Toolset?
As you can see from the wpv-login-form shortcode attributes, you can specify a page to redirect to when a user logs in (e.g. to some front-end page).
That wouldn't stop them directly accessing the /wp-admin/ page though.
Toolset doesn't include any feature to limit access to the back end.
There are other plugins that do, or you can add a little PHP code to achieve the same. There are quite a few tutorials online. Here is an example: hidden link