• Hello everyone, I wanted to know if there is a remote possibility through some filter or another, to cause to be published, such as a publisher or subscriber, again with the help of specific plugins such Members, etc.., only one item, and not to publish another, giving you the chance to edit it and put it back in revision, but only one, that is, one without the possibility of using the Add New and insert another.

    Specifically, as for example with the Members plugin, I have given the possibility to edit their own posts to a subscriber, I wish not to be given the opportunity to write another, but to modify and re-revision only one, namely that wrote, or cause to be published a single article.

    I hope I explained myself and thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The first two paragraphs are incredibly confusing.

    It sounds like you want it so people can publish only one post. Is this correct?

    You’ll want to use the save_post action hook. Get the current user with wp_get_current_user. Check if the user has any published posts already with get_posts (using post_author and post_status arguments).

    If get_posts returns any posts, they already have one published. If so, you still want to save the post, but you want to save it as draft and give the user a warning that they cannot publish it yet.

    Thread Starter coverfield

    (@coverfield)

    Thanks for the reply, and I apologize for my bad English.

    Yes, is correct, the people can publish only one post.

    1) The user logs in with permissions to write the article in the admin panel customized for him.

    2) The user adds new item and send it for review

    3) User can not add more items, can only change their

    is possible??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Publish a only single article’ is closed to new replies.