I am trying to set additional "default" categories. I figured by hooking into the wp_insert_post_data filter, I could use $postarr to set the category. It doesn't seem to be working? Can someone offer advice as to how I would go about doing this?
add_filter( 'wp_insert_post_data', 's3x9s_wp_insert_post_data', '99', 2 );
function s3x9s_wp_insert_post_data( $data, $postarr ) {
array_push( $postarr['post_category'], 123 );
return $data;
}