WordPress.org

Ready to get started?Download WordPress

Forums

WP PageNavi Style
Top level menu (2 posts)

  1. brasofilo
    Member
    Posted 1 year ago #

    Hi,
    wonderful plugin, thanks!

    I have a feature request that is "less features":
    - please consider moving the plugin menu to a sub-menu level (Appearance, Tools or Settings)
    - IMO, the first level should be reserved for plugins with many configuration pages
    - our real state menu area will be thankful for that :)

    http://wordpress.org/extend/plugins/wp-pagenavi-style/

  2. brasofilo
    Member
    Posted 1 year ago #

    Well, just for the record, I'm solving this by now using the following code.

    (can be used inside the theme's functions.php, as a plugin or a mu-plugin)

    <?php
    /* Plugin Name: Move WP PageNavi Styles */
    add_action( 'admin_init', 'remove_wp_pagenavi_style' );
    add_action( 'admin_menu', 'add_wp_pagenavi_style' );
    function remove_wp_pagenavi_style() {
    	remove_menu_page('wp-pagenavi-style/wp-pagenavi-style.php');
    }
    function add_wp_pagenavi_style() {
    	add_theme_page('PageNavi Style', 'PageNavi Style', 'install_plugins', 'wp-pagenavi-style/wp-pagenavi-style.php');
    }

    obs: attention to the install_plugins capability, adjust as desired

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic