Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::is_dismissed()publicWC 1.0

Bool for task dismissal.

Method of the class: Task{}

No Hooks.

Return

true|false.

Usage

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

Task::is_dismissed() code WC 9.0.1

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