WP PageNavi Style
Put in a submenu fix (2 posts)

  1. alx359
    Posted 4 years ago #

    Hey Nilesh,
    Thanks for the great plugin!

    It bothered me a bit though, and probably others, that it installs in its own menu alone, taking valuable toolbar space. I fixed this as putting it together with PageNavi in the 'Settings' page, where think it belongs. Hope you find this useful for the next release.

    So, the changes:

    wp-pagenavi-style.php li ~86:

    function wp_pn_style_admin_menu() {
    //[alx359] put as a submenu instead
    //$level = 'level_7';
    //add_menu_page('PageNavi Style', 'PageNavi Style', $level, __FILE__, 'wp_pn_style_options_page',WP_PAGENAVI_STYLE_PATH.'images/icon.png');
    $wp_style_page = add_options_page( "PageNavi Styles", "PageNavi Style", "publish_pages", "wp-pagenavi-style", "wp_pn_style_options_page" );
    add_action( "admin_print_scripts-$wp_style_page", 'wp_pn_style_admin_menu', 5 );

    options.php li ~32:

    //[alx359] fix for work as a submenu



  2. Daedalon
    Posted 3 years ago #

    Useful patch! Will use on my sites to clean up the admin screen. WP PageNavi Style settings will be visited so seldom that a top level menu entry is just clutter.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP PageNavi Style
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic