WC_Settings_API::set_post_data()publicWC 1.0

Sets the POSTed data. This method can be used to set specific data, instead of taking it from the $_POST array.

Method of the class: WC_Settings_API{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->set_post_data( $data );
$data(array)
Posted data.
Default: array()

WC_Settings_API::set_post_data() code WC 8.7.0

public function set_post_data( $data = array() ) {
	$this->data = $data;
}