Add action save post when create and publish

I think one key question here is how _select_match_from_id meta value is saved? Is it some metafield on the post edit screen or from some other logic? If I may assume that it is from a metafield, then you could just read its value from the $_POST array. You could also improve your code by … Read more