Restrict Content Pro

rcp_before_login_form

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 immediately before RCP outputs the standard login template (login.php). It runs inside rcp_login_form_fields() when the request is the normal login form (not lost password, check-email, or reset-password views).

Use this to print markup above the login form on pages that use the [login_form] shortcode or theme templates that call rcp_login_form_fields().

Parameters

None.

Examples

function mytheme_rcp_before_login_form() {
	echo '<p>' . esc_html__( 'Members log in below.', 'mytheme' ) . '</p>';
}
add_action( 'rcp_before_login_form', 'mytheme_rcp_before_login_form' );

Related: rcp_after_login_form, login_form shortcode.

Last updated: October 30, 2026
Was this page helpful?
Thanks for the feedback!