WordPress.org

Ready to get started?Download WordPress

Forums

Locked posts (7 posts)

  1. rpOliveira
    Member
    Posted 3 years ago #

    Hi!

    I use the Lock Posts plugin to lock the posts I don't want other users to edit (I want the tags and categories of that posts locked). Using that plugin, there's a column in the post list that shows if the post is locked or unlocked and when a user tries to edit a locked post a message is displayed saying that the post is locked.

    Using the front-end editor plugin that feature is bypassed. Users can change the tags and categories of locked posts, also.

    It would be great if front-end edition didn't allow that locked posts could be edited by other users - only the admin.

    There's any way to do this?

  2. scribu
    Member
    Posted 3 years ago #

    Yes, this can be done using the 'front_end_editor_allow_post' filter:

    http://github.com/scribu/wp-front-end-editor/wiki/Actions-and-filters

    I suggest you ask the developers of the Lock Posts plugin to implement it.

  3. rpOliveira
    Member
    Posted 3 years ago #

    But I don't want to disable the plugin for certain URLs.

    I have many posts in the main page and their categories and tags are editable with the front-end editor. I need that some posts can be edited via front-end editor and that some can not be edited (those who are locked). All the posts are in the same URL - the main page.

  4. rpOliveira
    Member
    Posted 3 years ago #

    I believe each post has a lock_status variable. Can't you enable or disable front-end edition for each post based on that variable?

  5. rpOliveira
    Member
    Posted 3 years ago #

    Here is the code used to know if a post is locked:

    `[Code moderated as per the Forum Rules. Please use the pastebin]

  6. scribu
    Member
    Posted 3 years ago #

    You didn't read carefully enough the documentation I sent you to. You don't have to disable FEE for an entire page. You can disable only certain fields for certain posts.

    I will not provide further assistance with this because:

    Front-end Editor is freely available and I develop it in my spare time. I prefer to use that time to fix bugs and add new features, not waste it on compatibility with commercial plugins that have paid developers working on them.

    Especially since you don't even have to modify FEE to get it to do what you want.

    Besides, Locked Posts comes with dedicated support. Now is the time to use that support.

  7. rpOliveira
    Member
    Posted 3 years ago #

    Ok. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic