How to Enable WPCargo Driver to Delete Addressbook

Copy and paste the following code in the functions.php of your current theme

function custom_delete_address( $delete_shipment_role ){
	$delete_shipment_role = array( 'administrator', 'wpcargo_employee', 'wpcargo_client','wpcargo_driver' ) ;
	return $delete_shipment_role;
}
add_filter( 'wpcfe_delete_address_role', 'custom_delete_address' );
0
    0
    Your Cart
    Your cart is emptyReturn to Shop