W3cubDocs

/WordPress

Language_Pack_Upgrader_Skin::__construct( array $args = array() )

Constructor.

Description

Sets up the language pack upgrader skin.

Parameters

$argsarrayoptional

Default:array()

Source

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 );
}

Changelog

Version Description
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/language_pack_upgrader_skin/__construct