Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::get_snoozed_untilpublicWC 1.0

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.

Get the snoozed until datetime.

Method of the class: Task{}

No Hooks.

Returns

String.

Usage

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

Changelog

Deprecated since 7.2.0

Task::get_snoozed_until() code WC 10.5.0

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

	$snoozed_tasks = get_option( self::SNOOZED_OPTION, array() );
	if ( isset( $snoozed_tasks[ $this->get_id() ] ) ) {
		return $snoozed_tasks[ $this->get_id() ];
	}

	return null;
}