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)
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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |