Home Forums General Pre-Purchase Questions Can I disable edit posts for individual users?

This topic is: resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13453

    impsart
    Member
    Post count: 1

    Good day. I've been really considering to purchase your plugin as it almost fit everything I need. But can you please shed some light on my problems that I hope this plugin will solve.

    Say the default role is Contributor, then in time a person decides to no longer be part of the team and stop writing articles. Is there a way to lock him out from further editing his already submitted posts? Or will demoting his role into Subscriber be enough to do the trick? I am aware that there's a setting for this on the back-end but it seems to be a global setting. Deleting the account and reassigning the posts to another author is also not an option for us so I'm hoping there's a solution.

    Insight on the matter is greatly appreciated.

    Thanks!

    #13457

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can lock certain users not to be able to create new posts, but you can't currently disable post editing feature only. But copy/pasting 2/3 lines would do the trick for post editing also ๐Ÿ™‚

    #13569

    impsart
    Member
    Post count: 1

    Hi Tareq,

    I don't mind fiddling with the code but I do hope that you get to help me with it.
    Can the codes be done through my function.php so I don't worry about getting it overwritten on upgrades?

    I'm about to purchase the plugin. Thanks!

    #13605

    Tareq Hasan
    Keymaster
    Post count: 2831

    [php]
    $info = apply_filters( ‘wpuf_addpost_notice', ” );
    $user_can_post = apply_filters( ‘wpuf_can_post', ‘yes', $form_id, $form_settings );

    if ( $user_can_post != ‘yes' ) {
    echo ‘<div class="info">' . $info . ‘</div>';
    return;
    }
    [/php]

    You need to paste this snippet just after this line $form_settings = get_post_meta( $form_id, 'wpuf_form_settings', true ); in /class/frontend-form-post.php line: 96.

    Yes, you'll loose the changes once the plugin gets any update.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Can I disable edit posts for individual users?’ is closed to new replies.