How to allow other role from creating shipment
Filter hook in assign shipment for agent.
add_filter( 'wpcfe_add_shipment_role', 'custom_wpcfe_add_shipment_role' ); function custom_wpcfe_add_shipment_role( $roles ){ $roles[] = 'cargo_agent'; return $roles; }