# Make Authors Submit Posts for Review

> Takes away the authors' right to publish, so their posts go to Pending Review for an editor to approve.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, roles, workflow
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/authors-submit-for-review/

## Code

```php
// Roles that must submit for review instead of publishing.
$wpide_review_roles = array( 'author' );

add_filter( 'user_has_cap', function ( $allcaps, $caps, $args, $user ) use ( $wpide_review_roles ) {
    if ( array_intersect( (array) $user->roles, $wpide_review_roles ) ) {
        $allcaps['publish_posts'] = false;
    }

    return $allcaps;
}, 10, 4 );
```

## Notes

Authors can still edit their already published posts; add a snippet to restrict that if needed.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Make Authors Submit Posts for Review" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
