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:

3
    3
    Your Cart
    Remove
    WPCargo Distance Rate
    1 X $69.00 = $69.00
    Remove
    WPCargo Viber Notification Addons
    2 X $39.00 = $78.00
    Remove
    WPCargo Branches Add-ons
    1 X $39.00 = $39.00