Skip to content
Docs
Get RestroPress

Action

rpress_customer_tools_bottom

Updated
On this page

Fires after the Tools section of the customer screen has been printed.

Runs at the end of rpress_customer_tools_view(). Use it to add your own tool card or buttons after the built-in tools.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_customer_tools_bottom( $customer ) {
	echo '<div class="rp-card"><p>' . esc_html( sprintf( 'Custom tools for customer #%d', $customer->id ) ) . '</p></div>';
}
add_action( 'rpress_customer_tools_bottom', 'my_customer_tools_bottom', 10, 1 );

Source#

Fired from:

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

See also#

Was this page helpful?