Language_Pack_Upgrader_Skin::__construct()publicWP 3.7.0

Constructor.

Sets up the language pack upgrader skin.

Method of the class: Language_Pack_Upgrader_Skin{}

No Hooks.

Return

null. Nothing (null).

Usage

$Language_Pack_Upgrader_Skin = new Language_Pack_Upgrader_Skin();
$Language_Pack_Upgrader_Skin->__construct( $args );
$args(array)
-
Default: array()

Changelog

Since 3.7.0 Introduced.

Language_Pack_Upgrader_Skin::__construct() code WP 6.6

public function __construct( $args = array() ) {
	$defaults = array(
		'url'                => '',
		'nonce'              => '',
		'title'              => __( 'Update Translations' ),
		'skip_header_footer' => false,
	);
	$args     = wp_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 );
}