Bulk_Upgrader_Skin::__construct() WordPress Method

The Bulk_Upgrader_Skin::__construct() method is used to set up the bulk upgrader skin. It takes two parameters: an upgrader object (usually an instance of Bulk_Upgrader) and an array of options. The options array can contain the following keys: * 'nonce' - A nonce string used to verify the request. * 'url' - The URL of the upgrade.php file. * 'title' - The title of the upgrade page. * 'context' - The context in which the upgrade is being performed (e.g. 'update-core'). The Bulk_Upgrader_Skin::__construct() method sets up the bulk upgrader skin by setting the appropriate properties on the Bulk_Upgrader instance. It also sets up the upgrade page title and URL.

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


Parameters

$args

(array)(Optional)

Default value: array()


Top ↑

Source

File: wp-admin/includes/class-bulk-upgrader-skin.php

	public function __construct( $args = array() ) {
		$defaults = array(
			'url'   => '',
			'nonce' => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		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.