Support » Plugin: Quick Page/Post Redirect Plugin » 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:

    	add_action( 'admin_menu', 'qppr_custom_remove_menu_pages',999 );
    	function 'qppr_custom_remove_menu_pages() {
    		global $redirect_plugin;
    		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.

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