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
My issue is resolved now. Thank you!