Fields not available in action hook?
-
Hi this is a great plugin and it’s been a great help for me. I was wondering about the availability of the field values in the action hook “transition_post_status”. When I try to access custom field values in a function connected to this hook, I don’t get the field value back, just empty (for example, get_field( ‘price’, $post -> ID ); doesn’t return a value). This code however seems to work well in templates, just not in the functions.php. Is it possible to get the field value at this point? Thank you for any explanation or guidance you can provide, it’s much appreciated.
The topic ‘Fields not available in action hook?’ is closed to new replies.