On this page
_WP_Dependency::__construct( mixed $args )
Setup dependencies.
Parameters
$argsmixed Required-
Dependency information.
Source
File: wp-includes/class-wp-dependency.php. View all references
public function __construct( ...$args ) {
list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
if ( ! is_array( $this->deps ) ) {
$this->deps = array();
}
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Dependencies::add() wp-includes/class-wp-dependencies.php | Register an item. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_dependency/__construct