Skip to content
Docs
Get RestroPress

Action

rpress_customer_tools_top

Updated
On this page

Fires before the Tools section of the customer screen is printed.

Runs at the start of rpress_customer_tools_view(), above the card that holds customer maintenance tools. Use it to print content above that card.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_customer_tools_top( $customer ) {
	echo '<p class="description">' . esc_html__( 'Review the customer record before running tools.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_customer_tools_top', 'my_customer_tools_top', 10, 1 );

Source#

Fired from:

  • includes/admin/customers/customers.php (line 848), in rpress_customer_tools_view()

See also#

Was this page helpful?