How to approve author posts in Wordpress?

Asked

Viewed 1,776 times

3

I’m having a "plobleminha".

Today I came across the need to add a function that is not native to Wordpress.

Is the following:

This site has several authors, I would like whenever a Autor post a post, it does not appear immediately on the site, before the post has to pass approval, so only after a Editor or Administrador approve the post that it will be displayed to all visitors.

I’ve installed several plugins and so far none satisfied me.

I would like something simple, only that when an author publishes the post it is sent for approval, a notification is sent to Painel of the Editors or Administrators so that they can approve it.

Does anyone know a Plugin that really works? Or knows another solution?

2 answers

8

One way to do this without resorting to plugins is to demote Authors to Contributors. Thus, the option that appears to them is "Submit for review" instead of "Publish".

To change profile: Users > Select User > Edit>Change profile(for Collaborator)

View of the Collaborator Painel do Colaborador

View from the Admin Painel do Administrador

Articles>Pending> Select article> Publish

More info, see overview of functions in http://codex.wordpress.org/pt-br:Fun%C3%A7%C3%B5es_e_capacities

I hope I’ve helped!

  • Only this does not work, so the person can not upload and nor moderate the comments in your posts. I have solved here using the plugin User Role Editor, then I made them Autores were not allowed to post, so when he creates a post he is sent for review equal to that of the Collaborator. At the moment it was the best solution I could find. : D But thank you so much for trying to help! Hug!

  • 1

    @Alexandrelopes thank you for sharing the plugin, seems useful. I paid no attention to other limitations of collaborators :-)

1

On one of my websites, I use a function that creates a personalized role. You can put the "writers" on it and so they will have the permissions you determine.

In the functions:

// Cria cargo Colaborador Top, que só não pode excluir posts
add_role('colaboradortop', 'Colaborador Top', array(
    'edit_posts' => true,
    'delete_posts' => false,
    'edit_published_posts' => true,
    'publish_posts' => false, // só pode salvar rascunhos
    'edit_files' => true,
    'read' => true,
    'upload_files' => true //pode enviar arquivos
));

View all functions and capabilities on Codex of Wordpress.

  • Caveat: Like add_role makes a direct change in the BD, the function returns early and does not change anything if the name (e.g. "collaboratortop") already exists in the bank. This makes it impossible to modify the capabilities just by modifying the function array, as if they were normal parameters defined in the theme load. It is advisable to use this function only on the Hooks that run on theme or plugin activation, also using remove_role on deactivation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.