WordPress.org

Support

Support » Plugins and Hacks » Quick Page/Post Redirect Plugin » [Resolved] allow editors to use the plugin?

[Resolved] allow editors to use the plugin?

Viewing 1 replies (of 1 total)
  • The plugin allows for anyone with manage_options to see the menus. If you need others, you will probably have to remove the plugin menus and re-add them with the capabilities, as the plugin does not have a hook for that (maybe we will add it in the future).

    you could try something like this in your functions.php file, but this is NOT tested, I just types it out now in this response:

    if(class_exists('quick_page_post_reds')){
    	add_action( 'admin_menu', 'qppr_custom_remove_menu_pages',999 );
    	function 'qppr_custom_remove_menu_pages() {
    		global $redirect_plugin;
    		remove_menu_page('redirect-options');
    		remove_submenu_page( 'redirect-options', 'redirect-updates' );
    		remove_submenu_page( 'redirect-options', 'redirect-summary' );
    		remove_submenu_page( 'redirect-options', 'redirect-faqs' );
    		$new_cap = 'edit_posts';
    		add_menu_page('Redirect Options', 'Redirect Options', $new_cap, 'redirect-options', array($redirect_plugin,'ppr_settings_page'));
    		add_submenu_page( 'redirect-options', 'Quick Redirects', 'Quick Redirects', $new_cap, 'redirect-updates', array($redirect_plugin,'ppr_options_page') );
    		add_submenu_page( 'redirect-options', 'Redirect Summary', 'Redirect Summary', $new_cap, 'redirect-summary', array($redirect_plugin,'ppr_summary_page') );
    		add_submenu_page( 'redirect-options', 'FAQs/Help', 'FAQs/Help', $new_cap, 'redirect-faqs', array($redirect_plugin,'ppr_faq_page') );
    	}
    }

    Hipe this helps.
    Regards,
    Don

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] allow editors to use the plugin?’ is closed to new replies.
Skip to toolbar