WP_Background_Process::update()publicWC 1.0

Update queue

Method of the class: WP_Background_Process{}

No Hooks.

Return

$this.

Usage

$WP_Background_Process = new WP_Background_Process();
$WP_Background_Process->update( $key, $data );
$key(string) (required)
Key.
$data(array) (required)
Data.

WP_Background_Process::update() code WC 8.7.0

public function update( $key, $data ) {
	if ( ! empty( $data ) ) {
		update_site_option( $key, $data );
	}

	return $this;
}