WC_Settings_API::get_post_data │ public │ WC 1.0

Returns the POSTed data, to be used to save the settings.

Метод класса: WC_Settings_API{}

Хуков нет.

Возвращает

array.

Использование

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->get_post_data();

Код WC_Settings_API::get_post_data() WC 11.2.1

public function get_post_data() {
	if ( ! empty( $this->data ) && is_array( $this->data ) ) {
		return $this->data;
	}
	return $_POST; // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Raw settings values are returned for field-specific validation; authorization belongs to the caller.
}