Bulk_Upgrader_Skin::before() WordPress Method

The Bulk_Upgrader_Skin::before() method is called before an upgrade begins. It is used to display a message to the user letting them know that an upgrade is about to begin.

Bulk_Upgrader_Skin::before( string $title = '' ) #


Parameters

$title

(string)(Optional)

Default value: ''


Top ↑

Source

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

	public function before( $title = '' ) {
		$this->in_loop = true;
		printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
		echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').css("display", "inline-block");</script>';
		// This progress messages div gets moved via JavaScript when clicking on "Show details.".
		echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>';
		$this->flush_output();
	}

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.