How to Allow other Roles to Get Detrack Remote Status

Paste this on your current theme’s functions.php file:


function wpc_detrack_can_fetch_remote_status_roles_callback($roles){
    # allow WPCargo Client
    $roles[] = 'wpcargo_client';
    return $roles;
}
add_filter('wpc_detrack_can_fetch_remote_status_roles', 'wpc_detrack_can_fetch_remote_status_roles_callback', 10, 1);

Before code application:

After code application:

0
    0
    Your Cart
    Your cart is emptyReturn to Shop