• Resolved sabakhurrum

    (@sabakhurrum)


    hi,

    i just need to give access to terawallet funds credit possibility to admins only and not to shop managers or any other roles or members. How to limit the access and restrict it from the access.

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @sabakhurrum You can restrict the access by using this code in theme functions.php file.

    add_filter( 'woo_wallet_user_capability', 'woo_wallet_user_capability_callback', 10, 1 );
    if ( ! function_exists( 'woo_wallet_user_capability_callback' ) ) {
    	function woo_wallet_user_capability_callback( $capability ) {
    		$capability = 'manage_options';
    		return $capability;
    	}
    }

    Thread Starter sabakhurrum

    (@sabakhurrum)

    Despite adding this code, shop managers have still access to issue refund through wallet for any order. How to restrict this? thanks for your support

    Hi @subratamal,

    Same question to you as requested.

    Did add the filter but can’t find where to restrict roles.

    Any suggestion?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don’t want to give access to shop managers, how to restrict?’ is closed to new replies.