Restrict Content Pro

rcp_edit_subscription_level

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 right after a membership level has been edited. Use this with rcp_edit_subscription_form if you added a custom field to the Edit Membership Level form.

Parameters

$level_id (int) – ID of the level that was just edited.

$args (array) – Array of arguments used when updating the subscription level.

Example

This example saves the Group Seats field from the Edit Membership Level form.

/**
 * Save a custom field from the Edit Membership Level form.
 *
 * @param int   $level_id ID of the level that was just edited.
 * @param array $args     Arguments used when updating the level.
 */
function rcpga_save_groups_seats_subscription( $level_id, $args ) {
	if ( ! isset( $_POST['rcpga-group-seats'] ) ) {
		return;
	}

	// Save your custom value for $level_id here.
}
add_action( 'rcp_edit_subscription_level', 'rcpga_save_groups_seats_subscription', 10, 2 );

The 2 in add_action is required so the callback receives both $level_id and $args.

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