Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskLists::get_lists_by_ids()public staticWC 1.0

Get all task lists.

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

No Hooks.

Return

Array.

Usage

$result = TaskLists::get_lists_by_ids( $ids );
$ids(array) (required)
list of task list ids.

Code of TaskLists::get_lists_by_ids() WC 6.6.1

public static function get_lists_by_ids( $ids ) {
	return array_filter(
		self::$lists,
		function( $list ) use ( $ids ) {
			return in_array( $list->get_list_id(), $ids, true );
		}
	);
}