Action
rpress_after_customer_edit_link
On this page
Fires after the Edit Customer button on the customer profile card.
Runs inside the profile form only when the current user has the capability returned by rpress_edit_customers_role. Use it to print an additional action next to the Edit Customer button.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The customer being viewed. |
Example#
function my_after_edit_link( $customer ) {
echo ' <a class="button" href="' . esc_url( 'mailto:' . $customer->email ) . '">' . esc_html__( 'Email customer', 'my-plugin' ) . '</a>';
}
add_action( 'rpress_after_customer_edit_link', 'my_after_edit_link', 10, 1 );
Source#
Fired from:
includes/admin/customers/customers.php(line 479), inrpress_customer_admin_render_profile_form()
See also#
Was this page helpful?
