Plugin_Upgrader_Skin::__construct
Constructor.
Sets up the plugin upgrader skin.
Method of the class: Plugin_Upgrader_Skin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Plugin_Upgrader_Skin = new Plugin_Upgrader_Skin(); $Plugin_Upgrader_Skin->__construct( $args );
- $args(array)
- The plugin upgrader skin arguments to override default options.
Default: empty array
Changelog
| Since 2.8.0 | Introduced. |
Plugin_Upgrader_Skin::__construct() Plugin Upgrader Skin:: construct code WP 6.8.3
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'plugin' => '',
'nonce' => '',
'title' => __( 'Update Plugin' ),
);
$args = wp_parse_args( $args, $defaults );
$this->plugin = $args['plugin'];
$this->plugin_active = is_plugin_active( $this->plugin );
$this->plugin_network_active = is_plugin_active_for_network( $this->plugin );
parent::__construct( $args );
}