Skip to content
Docs
Get RestroPress

Action

rpress_purchase_login_options

Updated
On this page

Fires to render the login and register choices when an account is required.

Runs in rpress_show_purchase_form() for logged-out visitors when the login method requires an account. Core hooks rpress_checkout_user_account() here, which prints the Account section with login and register buttons.

Example#

function my_purchase_login_options() {
	echo '<p class="my-login-note">' . esc_html__( 'An account is required to order.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_purchase_login_options', 'my_purchase_login_options', 20, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 123), in rpress_show_purchase_form()

See also#

Was this page helpful?