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

  1. Kyle.php
    Posted 2 years ago #

    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 :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Approve User
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic