_WP_Dependency::__construct() WordPress Method
The __construct() method is the class constructor for the WP_Dependency class. It initializes the class properties and sets up the class instance.
_WP_Dependency::__construct( mixed $args ) #
Setup dependencies.
Parameters
- $args
(mixed)(Required)Dependency information.
Source
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();
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.3.0 | Formalized the existing ...$args parameter by adding it to the function signature. |
| 2.6.0 | Introduced. |