Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ο»Ώ<?php
- /***************************************************************************/
- /* Plugin Name: WPS Poll */
- /* URI: ../wp-content/plugins/wps-poll */
- /* Description: This plugin is a test plugin for learning purpose. */
- /* Version: 0.1 Author: Nyle Davis */
- /* Author URI: http://URI_Of_The_Plugin_Author */
- /* License: GPL2 - most WordPress plugins are released under GPL2 */
- /***************************************************************************/
- function wps_poll_options_page () {
- ?>
- <div class=βwrapβ>
- <h2>WPS Poll Admin</h2>
- <p>Here comes the options page content</p>
- </div>
- <?php
- }
- function wps_poll_menu () {
- // Works
- add_menu_page('WPS Poll', __('WPS Poll'),'manage_options',basename(__FILE__), 'wps_poll_options_page');
- // Doesn't Work
- add_submenu_page('WPS Poll', __('WPS Poll'),'manage_options',basename(__FILE__), 'wps_poll_options_page');
- // Doesn't Work
- add_submenu_page('events-manager', __('WPS Poll'),'manage_options',basename(__FILE__), 'wps_poll_options_page');
- }
- add_action('admin_menu','wps_poll_menu');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement