Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::is_snoozed()
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.
Bool for task snoozed.
Method of the class: Task{}
No Hooks.
Return
true|false
.
Usage
$Task = new Task(); $Task->is_snoozed();
Changelog
Deprecated since | 7.2.0 |
Task::is_snoozed() Task::is snoozed code WC 7.5.1
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 ); }