Theme_Upgrader_Skin::__construct
Constructor.
Sets up the theme upgrader skin.
Метод класса: Theme_Upgrader_Skin{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Theme_Upgrader_Skin = new Theme_Upgrader_Skin(); $Theme_Upgrader_Skin->__construct( $args );
- $args(массив)
- The theme upgrader skin arguments to override default options.
По умолчанию:empty array
Список изменений
| С версии 2.8.0 | Введена. |
Код Theme_Upgrader_Skin::__construct() Theme Upgrader Skin:: construct WP 7.1
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'theme' => '',
'nonce' => '',
'title' => __( 'Update Theme' ),
);
$args = wp_parse_args( $args, $defaults );
$this->theme = $args['theme'];
parent::__construct( $args );
}