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() ) #
Contents
Parameters
- $args
(array)(Optional)
Default value: array()
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub