Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::is_snoozed
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.
Bool for task snoozed.
Method of the class: Task{}
No Hooks.
Returns
true|false
.
Usage
$Task = new Task(); $Task->is_snoozed();
Changelog
Deprecated since | 7.2.0 |
Task::is_snoozed() Task::is snoozed code WC 9.9.5
public function is_snoozed() { wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '7.2.0' ); if ( ! $this->is_snoozeable() ) { return false; } $snoozed = get_option( self::SNOOZED_OPTION, array() ); return isset( $snoozed[ $this->get_id() ] ) && $snoozed[ $this->get_id() ] > ( time() * 1000 ); }