WordPress.org

Ready to get started?Download WordPress

Forums

WP Approve User
How to grant editors the ability to approve/unapprove ? (1 post)

  1. Kyle.php
    Member
    Posted 1 year ago #

    Hello,
    First: thanks for that great work.
    Second: please excuse my english ...

    The hardcoded capability needed to (un)approve is promote_users :

    if ( ! current_user_can( 'promote_users' ) ) {
        wp_die( __( 'You can’t unapprove users.', 'wp-approve-user' ) );
    }

    Since WP allow Editors to promote themselves Admin with the promote_users permission ... I could use the JBP class but I'd rather keep that perm for administrator use only.

    A capability opt-in could be a cool feature but maybe I miss another way to do it.

    PS: happy festive season to anyone who read that line :)

    http://wordpress.org/plugins/wp-approve-user/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic