Replace dates in custom field date to word

Hi Experthive Team and Community,

This question open for anyone!

I am building a website where I have a custom field in the name Deadline with a date format.
Now, since my listing totally depends on listing dates. I like to build a system where, when the deadline date passes away, it does not show the date anymore but instead says Deadline Passed. Something similar to Screenshot.

I would highly appreciate any solution/workaround or PHP snippet.

Thank You
Akhil

Hi,

Thanks for the details. We recommend using a hivepress/v1/fields/date/display_value hook, where you can change the condition, but it is also important to check the Field name, for example, and which page, otherwise it may be applied to all Date fields.

I hope it helps