Hi @pgdarkness, in order to add this flow, you need to direct the vendor to the backend of the site, whenever they need to access the dashboard page.
If you need reference of the coding procedure, let us know.
I think I got it, I need to make a redirection like this: Right?
https://mywebsite/dashboard/ -> https://mywebsite/wp-admin/
Assuming the first part is the link of vendors front-end dashboard.
-
This reply was modified 6 years, 9 months ago by
pgDarkness.
-
This reply was modified 6 years, 9 months ago by
pgDarkness.
@pgdarkness, kindly follow this code snippet :
add_action( 'template_redirect', 'restrict_user_to_access_vendor_dashboard' );
function restrict_user_to_access_vendor_dashboard() {
global $post;
if($post->post_name == 'dashboard') {
$url = home_url().'/wp-admin';
wp_redirect($url);
exit;
}
}