_WP_Dependency::__construct()
Setup dependencies.
Method of the class: _WP_Dependency{}
No Hooks.
Return
null
. Nothing (null).
Usage
$_WP_Dependency = new _WP_Dependency(); $_WP_Dependency->__construct( ...$args );
- ...$args(mixed) (required)
- Dependency information.
Changelog
Since 2.6.0 | Introduced. |
Since 5.3.0 | Formalized the existing ...$args parameter by adding it to the function signature. |
_WP_Dependency::__construct() WP Dependency:: construct code 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(); } }