If X Amount of Time Has Passed Since Post Was Published, Do Something
What the current code does human_time_diff( get_the_time( ‘U’ ), current_time( ‘timestamp’ ) ) produces the time between when the post is published and the current time as a human readable string such as ‘6 days’. Meanwhile, strtotime( ‘7 days’ ) retrieves a integer timestamp representing 7 days after this moment, e.g. 1625673951. With that in … Read more