Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM › How to Hide account-info and stop redirect to account info
- This topic has 4 replies, 2 voices, and was last updated 7 years, 11 months ago by
gary cohen.
- AuthorPosts
- August 7, 2018 at 5:05 pm #27857
gary cohen
GuestHi,
Im running a membership site with no access unless a user is logged in. we are using gravity forms and woocommerce for registration. A member provides information in woocommerce and checks out in woocommerce cart. We are using WP User Manager plugin to limit access to pages based on a user’s role. The user has access to different areas based on permissions for their role. The site admin role is able to do everything on the front end that they would normally do on the dashboard, except I have not been able to use WCMF to give them access to approve payments. If I give their role access to the orders module, they are redirected to the account-info page not the orders page. I don’t use the account info page and don’t want the user going there. how do I stop the redirect. As a suoeradmin i can get to the orders page on the front end but not with any other role even with the same permissions in WP User Manager. My goal is for the client site admin to be able to Approve Orders in Woo on the front end based on their role access. I understood that WCFM could do that – But I am struggling. Please can you help.
thanks - August 8, 2018 at 5:03 am #27880
WCFM Forum
MemberHi,
Well, WCFM dashboard has some own restriction over which user roles are allowed to access this.
In default WP – ADMIN and shop manager are allowed to access this. if you are using a vendor plugin then that vendor user allowed to access this.
Now, if you want to allow your custom user roles to access this then you have to allow that user role using filter – wcfm_allwoed_user_roles
thank you
- August 9, 2018 at 1:37 pm #28013
gary cohen
Guestplease can you explain how to use wcfm_allwoed_user_roles.
also how to stop users seeing account-info
thx - August 9, 2018 at 4:44 pm #28083
WCFM Forum
MemberHi,
Here is an example of using this filter –
add_filter( 'wcfm_allwoed_user_roles', function( $allowed_roles ) { // $allowed_roles - it is an array, you have to include your role in it, like this $custom_roles = array( 'custom_role' ); $allowed_roles = array_merge( $allowed_roles, $custom_roles ); return $allowed_roles; });Thank You
- August 10, 2018 at 3:13 pm #28192
gary cohen
GuestThanks! Perfect!
- AuthorPosts
- The topic ‘How to Hide account-info and stop redirect to account info’ is closed to new replies.