Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.
If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
Use this filter to change the text on the registration submit button. This will have better results than simply editing the text in the template file directly.
Example:
/** * Change the submit button text from "Register" to "Submit Payment". * * @param string $button_text Original button text ("Register"). * * @return string Modified button text ("Submit Payment"). */ function ag_rcp_registration_register_button( $button_text ) { return __( 'Submit Payment', 'rcp' ); } add_filter( 'rcp_registration_register_button', 'ag_rcp_registration_register_button' );
Note: If you're using Stripe Checkout then you will need to use a slightly different method for changing the button text:
add_action( 'wp_footer', function() { ?> <script> if( typeof rcp_script_options !== 'undefined' ) { rcp_script_options.pay_now = 'Custom Text'; } </script> <?php }, 11 );
Change 'Custom Text'
to your desired value.