Add filterhook to render date
-
Would it be possible to add a filterhook to the contractDateBegin and contractDateEnd? I want to make it show the occasional content on a daily basis, instead of for a date range.
I now changed lines 24-25 of occasional-contents.php to the following:
$contractDateBegin = apply_filters(CED_WCSWR_PREFIX . '_contract_date_begin', DateTime::createFromFormat ( 'Y/m/d h:i A', $occasional_contents_date_from )); $contractDateEnd = apply_filters(CED_WCSWR_PREFIX . '_contract_date_end', DateTime::createFromFormat ( 'Y/m/d h:i A', $occasional_contents_date_to ));
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add filterhook to render date’ is closed to new replies.