Restrict Content Pro

rcp_before_registration_submit_field

Coming soon: Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experience.

Note: This content is provided as a resource within our developer documentation. Because custom code requires highly specific implementation, we encourage you to work with a qualified developer if you need guidance. You can find our recommended consultants here: https://codeable.io/developers/restrict-content-pro

Fires inside the registration form immediately before the submit button (after gateway fields and terms/privacy checkboxes when those are enabled).

RCP core uses this for CAPTCHA, the auto-renew checkbox, and hidden registration-type fields. Accepts an optional $levels argument when the multi-level form passes level objects; otherwise the action fires with no arguments.

Parameters

$levels (array) – Optional. Membership level objects on the multi-level registration form. Omitted on some single-level templates.

Examples

function mytheme_rcp_before_registration_submit_field( $levels = array() ) {
	echo '<p class="rcp-register-note">' . esc_html__( 'By submitting, you agree to our membership terms.', 'mytheme' ) . '</p>';
}
add_action( 'rcp_before_registration_submit_field', 'mytheme_rcp_before_registration_submit_field' );

Related: rcp_after_register_form_fields, rcp_form_errors.

Last updated: November 13, 2026
Was this page helpful?
Thanks for the feedback!