Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::undo_snooze()publicWC 1.0

Deprecated from version 7.2.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Undo task snooze.

Method of the class: Task{}

No Hooks.

Return

true|false.

Usage

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

Changelog

Deprecated since 7.2.0

Task::undo_snooze() code WC 8.7.0

public function undo_snooze() {
	wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '7.2.0' );

	$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;
}