Skip to content

Commit

Permalink
Adding a filter that allows to customize the date format used by the …
Browse files Browse the repository at this point in the history
…widget, as suggested by Thor Sarup.
  • Loading branch information
ms-studio committed Mar 5, 2016
1 parent 5f2a642 commit 57ad774
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion widgets/event-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ function($i) use ( $mem_today ) {
<?php
if ($show_date == true) {
echo '<span class="post-date">';
echo $mem_event_list[$key]["date-num"];
echo apply_filters(
'mem_event_date_display',
$mem_event_list[$key]["date-num"],
$mem_event_list[$key]
);
echo ' &ndash; </span>';
}
?>
Expand Down

0 comments on commit 57ad774

Please sign in to comment.