Skip to content
Docs
Get RestroPress

Action

rpress_recount_tool_descriptions

Updated
On this page

Fires inside the repair tool description area to add help text for extra options.

Runs in the description container of the Repair Restaurant Stats form, after the built-in descriptions and before the reset description. Echo a span whose id matches the data-type of an option added through rpress_recount_tool_options.

Example#

function my_recount_tool_descriptions() {
	echo '<span id="my-recount">' . esc_html__( 'Recalculates the totals stored by My Plugin.', 'my-plugin' ) . '</span>';
}
add_action( 'rpress_recount_tool_descriptions', 'my_recount_tool_descriptions' );

Source#

Fired from:

  • includes/admin/tools.php (line 390), in rpress_tools_recount_stats_display()

See also#

Was this page helpful?