WP_Scripts::reset() – Method | Developer.WordPress.org

Resets class properties.

Source

public function reset() {
	$this->do_concat      = false;
	$this->print_code     = '';
	$this->concat         = '';
	$this->concat_version = '';
	$this->print_html     = '';
	$this->ext_version    = '';
	$this->ext_handles    = '';
}

View all references View on Trac View on GitHub

Used byDescription
WP_Scripts::do_item()wp-includes/class-wp-scripts.php

Processes a script dependency.

print_head_scripts()wp-includes/script-loader.php

Prints the script queue in the HTML head on admin pages.

print_footer_scripts()wp-includes/script-loader.php

Prints the scripts that were queued for the footer or too late for the HTML head.

Changelog

VersionDescription
2.8.0Introduced.