Language_Pack_Upgrader_Skin::__construct() WordPress Method

The Language_Pack_Upgrader_Skin::__construct() method is used to upgrade a language pack for a WordPress site. This method can be used to upgrade a language pack when a new version of WordPress is released or when a new language pack is available for download.

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


Parameters

$args

(array)(Optional)

Default value: array()


Top ↑

Source

File: wp-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     = 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 );
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.