Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * AID functions and definitions
- *
- * @package WordPress
- * @subpackage AID
- * @since AID 1.0
- */
- ?>
- <?php
- add_action('admin_menu', 'aid_custom_options');
- function aid_custom_options()
- {
- add_menu_page('AID Theme Options', 'Theme Options', 'manage_options', 'functions','aid_options_page');
- }
- ?>
- <?php
- function aid_options_page()
- {
- ?>
- <div class="wrap">
- <h2>Global Options</h2>
- <form method="post" action="options.php">
- <?php wp_nonce_field('update-options') ?>
- <p><strong>Twitter ID:</strong><br />
- <input type="text" name="twitterid" size="45" value="<?php echo get_option('twitterid'); ?>" />
- </p>
- <p><input type="submit" name="Submit" value="Store Options" /></p>
- <input type="hidden" name="action" value="update" />
- <input type="hidden" name="page_options" value="twitterid" />
- </form>
- </div>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement