Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskLists::get_list()public staticWC 1.0

Retrieve a task list by ID.

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

No Hooks.

Return

TaskList|null.

Usage

$result = TaskLists::get_list( $id );
$id(String) (required)
Task list ID.

Code of TaskLists::get_list() WC 6.8.2

public static function get_list( $id ) {
	if ( isset( self::$lists[ $id ] ) ) {
		return self::$lists[ $id ];
	}

	return null;
}