How to Hide account-info and stop redirect to account info

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM How to Hide account-info and stop redirect to account info

Viewing 4 reply threads
  • Author
    Posts
    • #27857
      gary cohen
      Guest

      Hi,
      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

    • #27880
      WCFM Forum
      Member

      Hi,

      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

    • #28013
      gary cohen
      Guest

      please can you explain how to use wcfm_allwoed_user_roles.
      also how to stop users seeing account-info
      thx

    • #28083
      WCFM Forum
      Member

      Hi,

      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

    • #28192
      gary cohen
      Guest

      Thanks! Perfect!

Viewing 4 reply threads
  • The topic ‘How to Hide account-info and stop redirect to account info’ is closed to new replies.