Support

Account

Home Forums ACF PRO Check post type before publishing post Reply To: Check post type before publishing post

  • You need to supply the post ID of the post you want to update in $data

    
    $data['ID'] = $post_id;
    

    https://codex.wordpress.org/Function_Reference/wp_update_post