Plugin_Upgrader_Skin::__construct()
最后更新于:2021-11-25 20:48:01
Plugin_Upgrader_Skin::__construct( array$args=array())Constructor.
参数
- $args
-
(array) (Optional) The plugin upgrader skin arguments to override default options.
Default value: array()
源文件
文件: gc-admin/includes/class-plugin-upgrader-skin.php
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'plugin' => '',
'nonce' => '',
'title' => __( 'Update Plugin' ),
);
$args = gc_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 );
}