Hi guys,
I have a variable, created and populated inside the “publish_hour” (hour is my CPT) hook. I’ve been trying to save that variable to a metadata field, however, it seems that the data does get stored but get’s overwritten by a blank (I assume this is the value from the input box). Is there any way that I can prevent the data being overwritten?
From what I have observed, the hook “publish_hour” gets fired twice, as when I added “wp_die();” the data was not overwritten.