Language_Pack_Upgrader_Skin::__construct

Advertisement

Syntax Syntax

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

Parameters Parameters

$args

(array) (Optional)

Default value: array()

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.