WordPress.org

Ready to get started?Download WordPress

Forums

Quick Page/Post Redirect Plugin
[resolved] allow editors to use the plugin? (2 posts)

  1. jynk
    Member
    Posted 1 year ago #

    Is it possible to allow users with different roles use the plugin?

    http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/

  2. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags