Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::is_task_actioned()public staticWC 1.0

Check if a provided task ID has been actioned.

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

No Hooks.

Return

true|false.

Usage

$result = Task::is_task_actioned( $id );
$id(string) (required)
Task ID.

Code of Task::is_task_actioned() WC 6.8.2

public static function is_task_actioned( $id ) {
	$actioned = get_option( self::ACTIONED_OPTION, array() );
	return in_array( $id, $actioned, true );
}