WP_Background_Process::update()
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() WP Background Process::update code WC 9.4.2
public function update( $key, $data ) { if ( ! empty( $data ) ) { update_site_option( $key, $data ); } return $this; }