Skip Navigation

[Resolved] Post Status to Publish via Front End

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by irfanA 3 years, 10 months ago.

Author
Posts
#1903791

Tell us what you are trying to do?
1. Hi, I have created a Post from where once can create custom post but it goes to reivew.
2. I have created a user with edit form options so can make required changes in that post if needed.
3. I want to to give that use also an access to review the post and make it publish can you help me in that situation as unable to find a way to solve this.

Is there any documentation that you are following?

I was in discussion with Manshe I suggest below via chat but it get discconnected due to some reason.

add_action('cred_save_data', 'func_change_post_status',10,2);
function func_change_post_status($post_id, $form_data) {

if ($form_data['id']==625){
$my_post['ID'] = $post_id;
$my_post['post_status'] = $_REQUEST['post_status'];
// Update the post into the database
wp_update_post( $my_post );
}
}

Is there a similar example that we can see?

What is the link to your site?

hidden link

#1903793

My issue is resolved now. Thank you!