Skip to content
Docs
Get RestroPress

Action

rpress_tools_clear_doing_upgrade_before

Updated
On this page

Fires before the Clear Incomplete Upgrade Notice panel is displayed.

Runs at the start of the Clear Incomplete Upgrade Notice panel on the Data Repair tab. The panel, and therefore this action, only runs while the rpress_doing_upgrade option exists and the user has the manage_shop_settings capability.

Example#

function my_before_clear_upgrade() {
	echo '<p>' . esc_html__( 'Check that no upgrade is running before clearing the notice.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_tools_clear_doing_upgrade_before', 'my_before_clear_upgrade' );

Source#

Fired from:

  • includes/admin/tools.php (line 415), in rpress_tools_clear_doing_upgrade_display()

See also#

Was this page helpful?