Language_Pack_Upgrader_Skin::__construct()
最后更新于:2021-11-25 20:24:20
Language_Pack_Upgrader_Skin::__construct( array$args=array())参数
- $args
-
(array) (Optional)
Default value: array()
源文件
文件: gc-admin/includes/class-language-pack-upgrader-skin.php
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'nonce' => '',
'title' => __( 'Update Translations' ),
'skip_header_footer' => false,
);
$args = gc_parse_args( $args, $defaults );
if ( $args['skip_header_footer'] ) {
$this->done_header = true;
$this->done_footer = true;
$this->display_footer_actions = false;
}
parent::__construct( $args );
}