Plugin_Upgrader_Skin::__construct() –

You appear to be a bot. Output may be restricted

Description

Constructor.

Sets up the plugin upgrader skin.

Usage

Plugin_Upgrader_Skin::__construct( $args );

Parameters

$args
( array ) optional – Optional. The plugin upgrader skin arguments to override default options. Default empty array.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-plugin-upgrader-skin.php
Lines:

1 to 16 of 16
  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 );
  }
 

 View on GitHub View on Trac