WP_Scripts::reset() WordPress Method
The WP_Scripts::reset() method is used to reset all script handles. This is useful for when a plugin or theme is deactivated and you want to make sure that all script handles are reset.
WP_Scripts::reset() #
Resets class properties.
Source
File: wp-includes/class.wp-scripts.php
public function reset() {
$this->do_concat = false;
$this->print_code = '';
$this->concat = '';
$this->concat_version = '';
$this->print_html = '';
$this->ext_version = '';
$this->ext_handles = '';
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |