Used to inject content into the "Add New Level" table. This can be used to add a new field to the "Add New Level" form.

For saving the custom value, you'll want to use the rcp_add_subscription action.


function rcpga_add_groups_checkbox_subscription_form() {
<tr class="form-field">
	<th scope="row" valign="top">
		<label for="rcpga-group-seats-allow"><?php _e( 'Allow Group Account', 'rcp-group-accounts' ); ?></label>
		<input id="rcpga-group-seats-allow" type="checkbox" name="rcpga-group-seats-allow" />
		<p class="description"><?php _e( 'Check to enable group accounts for this subscription level.', 'rcp-group-accounts' ); ?></p>
add_action( 'rcp_add_subscription_form', 'rcpga_add_groups_checkbox_subscription_form' );
Powered by Zendesk