Action
rpress_tools_recount_stats_before
Fires before the Repair Restaurant Stats panel is displayed.
Runs at the start of the Repair Restaurant Stats panel on the Data Repair tab of the Tools page, after the capability check has passed. Use it to print content above the recount form.
Example#
function my_before_recount_stats() {
echo '<p>' . esc_html__( 'Take a database backup before repairing stats.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_tools_recount_stats_before', 'my_before_recount_stats' );
Source#
Fired from:
includes/admin/tools.php(line 325), inrpress_tools_recount_stats_display()
See also#
Was this page helpful?
