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