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    = '';
	}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.