This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 5 years, 10 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 7, 2013 at 12:02 pm 13453
Tareq Hasan 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!
December 7, 2013 at 12:53 pm 13457
Tareq Hasan Tareq Hasan

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 🙂

December 10, 2013 at 7:05 pm 13569
impsart impsart

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!

December 11, 2013 at 3:21 pm 13605
Tareq Hasan Tareq Hasan

$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>’;

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 3 Posts - 1 through 3 (of 3 total)