Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::is_snoozed()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.

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() code WC 8.7.0

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