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.

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

No Hooks.


null. Nothing.


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

Code of WC_Settings_API::set_post_data() WC 6.8.2

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