Automattic\WooCommerce\Internal\Admin\Settings
PaymentsRestController::update_providers_order
Update the payment providers order.
Method of the class: PaymentsRestController{}
No Hooks.
Returns
WP_Error|WP_REST_Response.
Usage
// protected - for code of main (parent) or child class $result = $this->update_providers_order( $request );
- $request(WP_REST_Request) (required)
- The request object.
PaymentsRestController::update_providers_order() PaymentsRestController::update providers order code WC 10.8.1
protected function update_providers_order( WP_REST_Request $request ) {
$order_map = $request->get_param( 'order_map' );
$result = $this->payments->update_payment_providers_order_map( $order_map );
return rest_ensure_response( array( 'success' => $result ) );
}