rcp_misc_settings

Used to add additional options in the Misc settings tab.

Parameters:

  • $rcp_options - Array of Restrict Content Pro settings.

Example:

function ag_rcp_misc_settings( $rcp_options ) {
	?>
	<tr valign="top">
		<th>
			<label for="rcp_settings[your_custom_setting]"><?php _e( 'Your Custom Setting' ); ?></label>
		</th>
		<td>
			<input type="text" id="rcp_settings[your_custom_setting]" class="regular-text" name="rcp_settings[your_custom_setting]" value="<?php echo isset( $rcp_options['your_custom_setting'] ) ? esc_attr( $rcp_options['your_custom_setting'] ) : ''; ?>">
			<p class="description"><?php _e( 'Your description goes here.' ); ?></p>
		</td>
	</tr>
	<?php
}

add_action( 'rcp_misc_settings', 'ag_rcp_misc_settings' );