Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::undo_snooze()publicWC 1.0

Undo task snooze.

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

No Hooks.

Return

true|false.

Usage

$Task = new Task();
$Task->undo_snooze();

Code of Task::undo_snooze() WC 6.9.4

public function undo_snooze() {
	$snoozed = get_option( self::SNOOZED_OPTION, array() );
	unset( $snoozed[ $this->get_id() ] );
	$update = update_option( self::SNOOZED_OPTION, $snoozed );

	if ( $update ) {
		$this->record_tracks_event( 'undo_remindmelater_task', array( 'task_name' => $this->get_id() ) );
	}

	return $update;
}