I'm using GravityForms to create a post when a form is submitted, and using custom fields for it.
I need to find a hook or action to use that runs /after/ the post is created (in forms_model.php
@ public static function create_post($form, &$lead)
) -- AND the add_meta_value() calls all finish running. I had been trying off publish_post -- but that's a no-starter, as it runs before the custom fields are inserted!
Is there some 'cleanup' hook that I could tag onto? Ideally before headers are sent, but either way would be fine at this point.