WordPress at Your Fingertips
function is not described

WC_Settings_API::get_post_data() public WC 1.0

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

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

No Hooks.

Return

Array.

Usage

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

Code of WC_Settings_API::get_post_data() WC 5.5.2

<?php
public function get_post_data() {
	if ( ! empty( $this->data ) && is_array( $this->data ) ) {
		return $this->data;
	}
	return $_POST; // WPCS: CSRF ok, input var ok.
}