Title: Bulk_Upgrader_Skin::__construct
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#wp--skip-link--target)

Constructor.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#description)󠁿

Sets up the generic skin for the Bulk Upgrader classes.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#parameters)󠁿

 `$args`arrayoptional

Default:`array()`

## 󠀁[Source](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#source)󠁿

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

    	parent::__construct( $args );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-bulk-upgrader-skin.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-bulk-upgrader-skin.php#L45)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-bulk-upgrader-skin.php#L45-L53)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Upgrader_Skin::__construct()](https://developer.wordpress.org/reference/classes/wp_upgrader_skin/__construct/)`wp-admin/includes/class-wp-upgrader-skin.php` |

Constructor.

  | 
| [wp_parse_args()](https://developer.wordpress.org/reference/functions/wp_parse_args/)`wp-includes/functions.php` |

Merges user defined arguments into defaults array.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/__construct/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fbulk_upgrader_skin%2F__construct%2F)
before being able to contribute a note or feedback.