Restrict Content Pro

rcp_payments_settings

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/

Used to add additional options in Restrict → Settings → Payments. This action runs after the Payments settings table, so wrap your fields in a table.

Parameters

$rcp_options – Array of Restrict Content Pro settings.

Example

/**
 * Add a custom field to Restrict → Settings → Payments.
 *
 * @param array $rcp_options Restrict Content Pro settings.
 */
function ag_rcp_payments_settings( $rcp_options ) {
	$value = isset( $rcp_options['your_custom_setting'] ) ? $rcp_options['your_custom_setting'] : '';
	?>
	<table class="form-table">
		<tr valign="top">
			<th>
				<label for="rcp_settings[your_custom_setting]"><?php esc_html_e( 'Your Custom Setting', 'rcp' ); ?></label>
			</th>
			<td>
				<input
					class="regular-text"
					id="rcp_settings[your_custom_setting]"
					name="rcp_settings[your_custom_setting]"
					type="text"
					value="<?php echo esc_attr( $value ); ?>"
				/>
				<p class="description"><?php esc_html_e( 'Your description goes here.', 'rcp' ); ?></p>
			</td>
		</tr>
	</table>
	<?php
}
add_action( 'rcp_payments_settings', 'ag_rcp_payments_settings' );

The input name must stay rcp_settings[your_key] so Restrict Content Pro saves it with the other payment settings.

Last updated: September 11, 2026
Was this page helpful?
Thanks for the feedback!