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

In this article

Constructor.

Description

Sets up the generic skin for the WordPress Upgrader classes.

Parameters

$argsarrayoptional
The WordPress upgrader skin arguments to override default options.

Default:array()

Source

public function __construct( $args = array() ) {
	$defaults      = array(
		'url'     => '',
		'nonce'   => '',
		'title'   => '',
		'context' => false,
	);
	$this->options = wp_parse_args( $args, $defaults );
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.