Bulk_Upgrader_Skin::before()
Performs an action before a bulk update.
Method of the class: Bulk_Upgrader_Skin{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Bulk_Upgrader_Skin = new Bulk_Upgrader_Skin(); $Bulk_Upgrader_Skin->before( $title );
- $title(string)
- -
Default: ''
Changelog
Since 3.0.0 | Introduced. |
Bulk_Upgrader_Skin::before() Bulk Upgrader Skin::before code WP 6.6.2
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 "More details.". echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>'; $this->flush_output(); }