-
I searched around but couldn’t find anything. Is there a way to set the posts users make using the frontend publisher drafts instead of automatically publishing to the site? I’d like to be able to proofread them before they go live.
lazlo, posts from non-admins will be PENDING indeed before getting published.
PHP123456789101112131415161718if (userpro_is_admin($user_id)){$array['post_status'] = 'publish';$post_id = wp_insert_post( $array );$output['custom_message'] = '<div class="userpro-message userpro-message-ajax"><p>'.sprintf(__('Your post has been published. You can view it %s.','userpro'), '<a href="'.get_permalink($post_id).'" rel="nofollow">here</a>').'</p></div>';} else { // under review$array['post_status'] = 'pending';$post_id = wp_insert_post( $array );$output['custom_message'] = '<div class="userpro-message userpro-message-ajax"><p>'.__('Your post has been sent for review. It will be checked by our staff.','userpro').'</p></div>';}Can I add something like if (userpro_is_admin($user_id)) AND if (userpro_is_author($user_id)) to allow author post to be bublished directly?
Would be nice to have this setting in plugin backend
This is a nice option indeed. I’ll add it to next update. 🙂
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.