Restrict Content Pro
rcp_before_password_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 before RCP outputs the change-password template (change-password.php) in rcp_change_password_form().
This wraps the form shown for password reset completion (rcp_action reset flows) and the [password_form] shortcode output—not the lost-password request form.
Parameters
None.
Examples
function mytheme_rcp_before_password_form() {
echo '<p>' . esc_html__( 'Choose a strong new password.', 'mytheme' ) . '</p>';
}
add_action( 'rcp_before_password_form', 'mytheme_rcp_before_password_form' );
Related: rcp_after_password_form, password_form shortcode.