Plugin_Upgrader_Skin::__construct
Constructor.
Sets up the plugin upgrader skin.
Метод класса: Plugin_Upgrader_Skin{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Plugin_Upgrader_Skin = new Plugin_Upgrader_Skin(); $Plugin_Upgrader_Skin->__construct( $args );
- $args(массив)
- The plugin upgrader skin arguments to override default options.
По умолчанию:empty array
Список изменений
| С версии 2.8.0 | Введена. |
Код Plugin_Upgrader_Skin::__construct() Plugin Upgrader Skin:: construct WP 7.1.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 );
}