Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::is_dismissed()publicWC 1.0

Bool for task dismissal.

{} It's a method of the class: Task{}

No Hooks.

Return

true|false.

Usage

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

Code of Task::is_dismissed() WC 6.9.4

public function is_dismissed() {
	if ( ! $this->is_dismissable() ) {
		return false;
	}

	$dismissed = get_option( self::DISMISSED_OPTION, array() );

	return in_array( $this->get_id(), $dismissed, true );
}