settings_fields() – Output nonce, action, and option_page fields for a settings page.
You appear to be a bot. Output may be restricted
Description
Outputs nonce, action, and option_page fields for a settings page.
Usage
settings_fields( $option_group );
Parameters
- $option_group
- ( string ) required – A settings group name. This should match the group name used in register_setting().
Returns
void
Source
File name: wordpress/wp-admin/includes/plugin.php
Lines:
1 to 5 of 5
function settings_fields( $option_group ) { echo "<input type='hidden' name='option_page' value='" . esc_attr( $option_group ) . "' />"; echo '<input type="hidden" name="action" value="update" />'; wp_nonce_field( "$option_group-options" ); }