BC Time Stamp

Creates wrapper for blocks that expires on a predetermined day.

Block will display message when expiration date has passed and no longer show on the front end of the website

  • Custom Classes

The following lines need to be changed on older BC sites with time stamp functionality.

Line 13:
Original: $end_date = strtotime(get_field('time_stamp_end_date'));
New: $end_date = get_field('time_stamp_end_date');

Line 17:
Original: $now = strtotime(date('d/m/Y'));
New: $now = date('d/m/Y');

PHP
/bc/wp-content/themes/bc3/default-blocks/wrappers/bc-block-time-stamp.php

I expire on January 31, 2025

Vestibulum suscipit eros at luctus malesuada. In a molestie nunc, molestie dictum lorem. Vestibulum consequat diam hendrerit vehicula dapibus. Mauris rutrum ligula tortor, non finibus purus malesuada nec. Nulla facilisi. In et hendrerit erat, et interdum erat. Nunc nec lorem vel arcu ullamcorper consectetur. Aliquam porttitor quam at ex auctor volutpat.

Expired Block

Block will display message when expiration date has passed and no longer show on the front end of the website.