Automattic\WooCommerce\Internal\Admin\Settings
Payments::update_payment_providers_order_map
Update the payment providers order map.
Method of the class: Payments{}
No Hooks.
Returns
true|false. True if the payment providers ordering was successfully updated, false otherwise.
Usage
$Payments = new Payments(); $Payments->update_payment_providers_order_map( $order_map ): bool;
- $order_map(array) (required)
- The new order for payment providers.
Payments::update_payment_providers_order_map() Payments::update payment providers order map code WC 10.7.0
public function update_payment_providers_order_map( array $order_map ): bool {
$result = $this->providers->update_payment_providers_order_map( $order_map );
if ( $result ) {
// Record an event that the payment providers order map was updated.
$this->record_event(
'payment_providers_order_map_updated',
array(
'order_map' => implode( ', ', array_keys( $this->providers->get_order_map() ) ),
)
);
}
return $result;
}