Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::undo_snooze
Deprecated since 7.2.0. It is no longer supported and may 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.
Returns
true|false.
Usage
$Task = new Task(); $Task->undo_snooze();
Changelog
| Deprecated since | 7.2.0 |
Task::undo_snooze() Task::undo snooze code WC 10.3.6
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;
}