Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Вывод страницы настройки формы
- function hr_plugin_options_callback()
- {
- ?>
- <div class="wrap">
- <h1>Your Plugin Name</h1>
- <form method="post" action="options.php">
- <?php settings_fields( 'my-cool-plugin-settings-group' ); ?>
- <?php do_settings_sections( 'my-cool-plugin-settings-group' ); ?>
- <table class="form-table">
- <tr valign="top">
- <th scope="row">New Option Name</th>
- <td><input type="text" name="new_option_name" value="<?php echo esc_attr( get_option('new_option_name') ); ?>" /></td>
- </tr>
- <tr valign="top">
- <th scope="row">Some Other Option</th>
- <td><input type="text" name="some_other_option" value="<?php echo esc_attr( get_option('some_other_option') ); ?>" /></td>
- </tr>
- <tr valign="top">
- <th scope="row">Options, Etc.</th>
- <td><input type="text" name="option_etc" value="<?php echo esc_attr( get_option('option_etc') ); ?>" /></td>
- </tr>
- </table>
- <?php submit_button(); ?>
- </form>
- </div>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement