Automattic\WooCommerce\Internal\Admin\Settings
PaymentsRestController::sanitize_providers_order_arg()
Sanitize the providers ordering argument.
Метод класса: PaymentsRestController{}
Хуков нет.
Возвращает
Массив
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->sanitize_providers_order_arg( $value ): array;
- $value(массив) (обязательный)
- Value of the argument.
Код PaymentsRestController::sanitize_providers_order_arg() PaymentsRestController::sanitize providers order arg WC 9.6.1
private function sanitize_providers_order_arg( array $value ): array { // Sanitize the ordering object to ensure that the order values are integers and the provider IDs are safe strings. foreach ( $value as $provider_id => $order ) { $id = sanitize_key( $provider_id ); $value[ $id ] = intval( $order ); } return $value; }