WordPress at Your Fingertips
function is not described

WC_REST_Network_Orders_V2_Controller::network_orders_permissions_check() public WC 1.0

Does a permissions check for the proper requested blog

{} It's a method of the class: WC_REST_Network_Orders_V2_Controller{}

No Hooks.

Return

true|false. $permission

Usage

$WC_REST_Network_Orders_V2_Controller = new WC_REST_Network_Orders_V2_Controller();
$WC_REST_Network_Orders_V2_Controller->network_orders_permissions_check( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of WC_REST_Network_Orders_V2_Controller::network_orders_permissions_check() WC 5.9.0

public function network_orders_permissions_check( $request ) {
	$blog_id = $request->get_param( 'blog_id' );
	$blog_id = ! empty( $blog_id ) ? $blog_id : get_current_blog_id();

	switch_to_blog( $blog_id );

	$permission = $this->get_items_permissions_check( $request );

	restore_current_blog();

	return $permission;
}