Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::get_snoozed_until()
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.
Get the snoozed until datetime.
Method of the class: Task{}
No Hooks.
Return
String
.
Usage
$Task = new Task(); $Task->get_snoozed_until();
Changelog
Deprecated since | 7.2.0 |
Task::get_snoozed_until() Task::get snoozed until code WC 9.7.1
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; }