WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Query
[resolved] Options available to all users (6 posts)

  1. Peter vanDoorn
    Member
    Posted 2 years ago #

    NextGEN Query's options are available to all users. Obviously, I don't want my site editors to be able to change the options to de-register header styles and scripts, so the following needs to be amended in nextgen-query.php at line 30:

    if ( current_user_can( 'manage_options' ) ) {
    	add_submenu_page('nextgen-gallery','NextGEN Query', 'Query', 8, __FILE__, ngq_menu);
      }

    Other than that - thanks for adding much-needed functionality to NextGEN Gallery (almost makes it a good plugin!!)

    http://wordpress.org/extend/plugins/nextgen-query/

  2. Ryan Burnette
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Peter Sorry for the 5-month late reply. We're working on this plugin again and I've added it as an enhancement planned for version 1.1.1. https://github.com/ryanburnette/NextGEN-Query/issues/2

    Thanks for the suggestion, we'll make it happen.

  3. Ryan Burnette
    Member
    Plugin Contributor

    Posted 1 year ago #

    Now with the 1.2.0 update the menu requires the 'manage_options' capability. You can customize further by adding a filter though. Here's an example:

    Let's say you want any user than can 'edit_post' to see the options page. Here's the code:

    function myFilterFunc() {
      return 'edit_posts';
    }
    add_filter('ngqOptionsPageCapability','myFilterFunc');
  4. Ryan Burnette
    Member
    Plugin Contributor

    Posted 1 year ago #

    @petervandoorn Mind marking this resolved if your issue is indeed resolved? ^^

  5. Peter vanDoorn
    Member
    Posted 1 year ago #

    Isn't it annoying that you can't just mark a thread as solved without having to post something?

    Thanks Ryan

  6. Ryan Burnette
    Member
    Plugin Contributor

    Posted 1 year ago #

    Yea this isn't Github, ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.