`<?php
add_action( ‘admin_menu’, ‘Search Engine Generator_add_admin_menu’ );
add_action( ‘admin_init’, ‘Search Engine Generator_settings_init’ );
function Search Engine Generator_add_admin_menu( ) {
add_menu_page( ‘Home/About/Contact/Sign Up/Login/’, ‘Home/About/Contact/Sign Up/Login/’, ‘manage_options’, ‘home/about/contact/sign_up/login/’, ‘Search Engine Generator_options_page’ );
}
function Search Engine Generator_settings_init( ) {
register_setting( ‘pluginPage’, ‘Search Engine Generator_settings’ );
add_settings_section(
‘Search Engine Generator_pluginPage_section’,
__( ‘Your section description’, ‘https://menu_bofa_co’ ),
‘Search Engine Generator_settings_section_callback’,
‘pluginPage’
);
add_settings_field(
‘Search Engine Generator_text_field_0’,
__( ‘Settings field description’, ‘https://menu_bofa_co’ ),
‘Search Engine Generator_text_field_0_render’,
‘pluginPage’,
‘Search Engine Generator_pluginPage_section’
);
add_settings_field(
‘Search Engine Generator_radio_field_1’,
__( ‘Settings field description’, ‘https://menu_bofa_co’ ),
‘Search Engine Generator_radio_field_1_render’,
‘pluginPage’,
‘Search Engine Generator_pluginPage_section’
);
add_settings_field(
‘Search Engine Generator_select_field_2’,
__( ‘Settings field description’, ‘https://menu_bofa_co’ ),
‘Search Engine Generator_select_field_2_render’,
‘pluginPage’,
‘Search Engine Generator_pluginPage_section’
);
}
function Search Engine Generator_text_field_0_render( ) {
$options = get_option( ‘Search Engine Generator_settings’ );
?>
<input type=’text’ name=’Search Engine Generator_settings[Search Engine Generator_text_field_0]’ value='<?php echo $options[‘Search Engine Generator_text_field_0′]; ?>’>
<?php
}
function Search Engine Generator_radio_field_1_render( ) {
$options = get_option( ‘Search Engine Generator_settings’ );
?>
<input type=’radio’ name=’Search Engine Generator_settings[Search Engine Generator_radio_field_1]’ <?php checked( $options[‘Search Engine Generator_radio_field_1′], 1 ); ?> value=’1’>
<?php
}
function Search Engine Generator_select_field_2_render( ) {
$options = get_option( ‘Search Engine Generator_settings’ );
?>
<select name=’Search Engine Generator_settings[Search Engine Generator_select_field_2]’>
<option value=’1′ <?php selected( $options[‘Search Engine Generator_select_field_2′], 1 ); ?>>Option 1</option>
<option value=’2’ <?php selected( $options[‘Search Engine Generator_select_field_2’], 2 ); ?>>Option 2</option>
</select>
<?php
}
function Search Engine Generator_settings_section_callback( ) {
echo __( ‘This section description’, ‘https://menu_bofa_co’ );
}
function Search Engine Generator_options_page( ) {
?>
<form action=’options.php’ method=’post’>
<h2>Home/About/Contact/Sign Up/Login/</h2>
<?php
settings_fields( ‘pluginPage’ );
do_settings_sections( ‘pluginPage’ );
submit_button();
?>
</form>
<?php
}