_WP_Dependency::__construct()publicWP 2.6.0

Setup dependencies.

Метод класса: _WP_Dependency{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$_WP_Dependency = new _WP_Dependency();
$_WP_Dependency->__construct( ...$args );
...$args(разное) (обязательный)
Dependency information.

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

С версии 2.6.0 Введена.
С версии 5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.

Код _WP_Dependency::__construct() WP 6.5.2

public function __construct( ...$args ) {
	list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
	if ( ! is_array( $this->deps ) ) {
		$this->deps = array();
	}
}