• I’m trying to use the WP help plugin for all people to see but not be able to edit it, how do I go about doing this? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tld265

    (@tld265)

    Does anyone know how to do this? It’d be much appreciated thanks.

    Digging through the code of the plugin I found a filter called cws_wp_help_edit_documents_cap that I used to change the role of who can edit the help pages, like this (I didn’t want editors to be able to edit help pages):

    // Change which capability is required for publishing posts in WP Help
    function adrianb_wp_help_change_cap( $publish_posts ) {
    	return 'activate_plugins'; // activate_plugins is something only adminsistrators can do
    }
    add_filter( 'cws_wp_help_edit_documents_cap', 'adrianb_wp_help_change_cap', 10, 1 );

    There is also a filter for view capabilities, cws_wp_help_view_documents_cap, that I would guess could be used in the same manner as above to adjust who can view the pages, but I haven’t tested it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allowing all users to see the menu’ is closed to new replies.