Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_options_page ( 'XXX', 'XXX', 'manage_options', 'xxx_plugin', 'xxx_options_page' );
- function xxx_options_page() { ?>
- <form action="options.php" method="post">
- <?php settings_fields('xxx_plugin_options'); ?>
- <?php $options = get_option('xxx_options'); ?>
- <table class="form-table">
- <tr>
- <th scope="row"><?php _e('Settings', 'xxx') ?></th>
- <td>
- <input type="checkbox" name="xxx_options[some_option]" value="1" <?php checked( 1 == $options['some_option'] ); ?> /> <?php _e("Some Option", "xxx") ?>
- </td>
- </tr>
- // Some more options
- </table>
- <p class="submit">
- <input name="xxx_submit" type="submit" class="button-primary" value="<?php _e('Submit Changes', 'xxx') ?>" />
- </p>
- </form>
- <?php }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement