Forums

WordPress Event Calendar
Solution: Adding plugin as a seperate menu item (1 post)

  1. edgarsso
    Member
    Posted 1 year ago #

    Hi, based on the documentation provided on WordPress I came up with the following code. I needed a way to take this plugin and show it at the top level in the admin area so it is easy to manage.

    Open the plugin directory and find the file calendar.php. Open it and add this code at the very end, just before ?>.

    I hope this helps!

    add_action('admin_menu', 'mt_add_pages');
    function mt_add_pages() {
     add_menu_page(__('Event Calendar','menu-test'), __('Event Calendar','menu-test'), '2', 'mt-top-level-handle', 'wec_manageEventsPage' );
    }

    http://wordpress.org/extend/plugins/wordpress-event-calendar/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by edgarsso
  • This topic is not a support question
  • WordPress version: 3.0