Skip to content

mc_date_badge

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter the date badge HTML.

Auto-generated Example

add_filter(
   'mc_date_badge',
    function(
        string $badge,
        int $time,
        string $date
    ) {
        // Your code here.
        return $badge;
    },
    10,
    3
);

Parameters

  • string $badge HTML output of the badge.
  • int $time Timestamp used.
  • string $date Date string passed into function.

Returns

string

Files

apply_filters( 'mc_date_badge', $badge, $time, $date )

← All Hooks

Clone this wiki locally