Used By
| Used By | Description |
|---|---|
| wp-includes/class.wp-dependencies.php: WP_Dependencies::add() | Register an item. |
Setup dependencies.
(mixed) (Required) Dependency information.
File: wp-includes/class-wp-dependency.php
public function __construct( ...$args ) {
list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
if ( ! is_array( $this->deps ) ) {
$this->deps = array();
}
} | Version | Description |
|---|---|
| 5.3.0 | Formalized the existing ...$args parameter by adding it to the function signature. |
| 2.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_dependency/__construct