Hi,
co-authors plugins uses: ‘list_users’ capability to protect its menu and some other functions. Another capabilities checked by this plugin: ‘edit_users’ and if current user can edit and/or delete the selected post.
How I got this information:
~/co-authors-plus$ grep -r -n -e "current_user_can("
php/class-coauthors-guest-authors.php:194: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:232: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:292: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:1341: if ( ! current_user_can( $this->list_guest_authors_cap ) || is_network_admin() ) {
php/class-coauthors-wp-list-table.php:210: if ( current_user_can( 'edit_post', $item->ID ) ) {
php/class-coauthors-wp-list-table.php:217: if ( current_user_can( 'edit_post', $item->ID ) ) {
php/class-coauthors-wp-list-table.php:220: if ( current_user_can( 'delete_post', $item->ID ) ) {
php/class-coauthors-wp-list-table.php:237: if ( current_user_can( 'edit_users' ) ) {
~/co-authors-plus$ grep -r -n -e "add_submenu"
php/class-coauthors-guest-authors.php:360: add_submenu_page( $this->parent_page, $this->labels['plural'], $this->labels['plural'], $this->list_guest_authors_cap, 'view-guest-authors', array( $this, 'view_guest_authors_list' ) );
~/co-authors-plus$ grep -r -n -e "list_guest_authors_cap"
php/class-coauthors-guest-authors.php:14: var $list_guest_authors_cap = 'list_users';
php/class-coauthors-guest-authors.php:76: $this->list_guest_authors_cap = apply_filters( 'coauthors_guest_author_manage_cap', $this->list_guest_authors_cap );
php/class-coauthors-guest-authors.php:194: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:232: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:292: if ( ! current_user_can( $this->list_guest_authors_cap ) ) {
php/class-coauthors-guest-authors.php:360: add_submenu_page( $this->parent_page, $this->labels['plural'], $this->labels['plural'], $this->list_guest_authors_cap, 'view-guest-authors', array( $this, 'view_guest_authors_list' ) );
php/class-coauthors-guest-authors.php:1341: if ( ! current_user_can( $this->list_guest_authors_cap ) || is_network_admin() ) {