WordPress at Your Fingertips
function is not described

WP_Background_Process::update() public WC 1.0

Update queue

{} It's a 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.

Code of WP_Background_Process::update() WC 5.8.0

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

	return $this;
}