Administrator
- Can add shipment.
- Can update shipment.
- Can delete shipment.
- Can assign employee.
- Can assign agent.
- Can assign client.
- Can assign branch manager (if Branch Manager Add-on is activated).
- Can assign driver (if Proof of Delivery Add-on is activated).
Employee
- Can add shipment.
- Can update shipment.
- Can delete shipment.
- Can assign agent.
- Can assign client.
- Can assign branch manager (if Branch Manager Add-on is activated).
- Can assign driver (if Proof of Delivery Add-on is activated).
Agent
- Can add shipment.
- Can update shipment.
- Can delete shipment.
- Can assign driver (if Proof of Delivery Add-on is activated).
Client
- Can track shipment through My Account page.
Branch Manager (requires Branch Manager Add-on)
- Can update shipment.
- Can assign agent.
- Can assign client.
- Can assign branch manager (if Branch Manager Add-on is activated).
- Can assign driver (if Proof of Delivery Add-on is activated).
Driver (requires Proof of Delivery Add-on)
- Can update shipment.
How to restrict users from accessing your wp-admin.
add_action( 'init', 'wpcargo_block_users_backend' );
function wpcargo_block_users_backend() {
if ( is_admin() && ! current_user_can( 'administrator' ) && ! wp_doing_ajax() ) {
wp_redirect( home_url( "my-account" ) );
exit;
}
}