WP_Upgrader_Skin::set_upgrader() WordPress Method

The WP_Upgrader_Skin::set_upgrader() method allows you to set the upgrader object for the skin. This is useful if you need to access the upgrader object outside of the default skin methods.

WP_Upgrader_Skin::set_upgrader( WP_Upgrader $upgrader ) #


Parameters

$upgrader

(WP_Upgrader)(Required)


Top ↑

Source

File: wp-admin/includes/class-wp-upgrader-skin.php

	public function set_upgrader( &$upgrader ) {
		if ( is_object( $upgrader ) ) {
			$this->upgrader =& $upgrader;
		}
		$this->add_strings();
	}


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.