How to Allow or Restrict WPCargo User Roles from Creating Shipment

Code goes to your active theme’s functions.php file:

// allow only admin, employee and client to create shipment
function wpccustom_wpcfe_add_shipment_role_cb($roles){
    $roles = array('wpcargo_employee', 'administrator', 'wpcargo_client');
    return $roles;
}
add_filter('wpcfe_add_shipment_role', 'wpccustom_wpcfe_add_shipment_role_cb', 15, 1);


4
    4
    Your Cart
    Remove
    WPCargo Advance Package
    2 X $349.00 = $698.00
    Remove
    WPCargo Parcel Quotation Package
    1 X $333.90 = $333.90
    Remove
    Remove
    WPCargo Shipment Rate
    1 X $79.00 = $79.00