Permissions for Dashboard, Shipments, and Settings
-
The submenu pages for trackship need custom permissions to allow us developers to limit who can change settings and see order statuses. Trackship should use permission “read_shop_order” (or another) for Dashboard and Shipments
if ( trackship_for_woocommerce()->is_trackship_connected() ) { add_submenu_page( 'trackship-dashboard', 'Dashboard', __( 'Dashboard', 'trackship-for-woocommerce' ), 'manage_woocommerce', 'trackship-dashboard', array( $this, 'dashboard_page_callback' ), 1 ); add_submenu_page( 'trackship-dashboard', 'Shipments', __( 'Shipments', 'trackship-for-woocommerce' ), 'manage_woocommerce', 'trackship-shipments', array( $this, 'shipments_page_callback' ), 1 ); add_submenu_page( 'trackship-dashboard', 'Settings', __( 'Settings', 'trackship-for-woocommerce' ), 'manage_woocommerce', 'trackship-for-woocommerce', array( $this, 'settings_page_callback' ) ); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Permissions for Dashboard, Shipments, and Settings’ is closed to new replies.