WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WP_Dependencies::do_items() public WP 2.6.0

Processes the items and dependencies.

Processes the items passed to it or the queue, and their dependencies.

{} Это метод класса: WP_Dependencies{}

Хуков нет.

Возвращает

Строку[]. Array of handles of items that have been processed.

Использование

$WP_Dependencies = new WP_Dependencies();
$WP_Dependencies->do_items( $handles, $group );
$handles(строка/строка[]/false)
Items to be processed: queue (false), single item (string), or multiple items (array of strings).
По умолчанию: false
$group(число/false)
Group level: level (int), no groups (false).
По умолчанию: false

Список изменений

С версии 2.6.0 Введена.
С версии 2.8.0 Added the $group parameter.

Код WP_Dependencies::do_items() WP 5.5.2

<?php
public function do_items( $handles = false, $group = false ) {
	/*
	 * If nothing is passed, print the queue. If a string is passed,
	 * print that item. If an array is passed, print those items.
	 */
	$handles = false === $handles ? $this->queue : (array) $handles;
	$this->all_deps( $handles );

	foreach ( $this->to_do as $key => $handle ) {
		if ( ! in_array( $handle, $this->done, true ) && isset( $this->registered[ $handle ] ) ) {
			/*
			 * Attempt to process the item. If successful,
			 * add the handle to the done array.
			 *
			 * Unset the item from the to_do array.
			 */
			if ( $this->do_item( $handle, $group ) ) {
				$this->done[] = $handle;
			}

			unset( $this->to_do[ $key ] );
		}
	}

	return $this->done;
}