Skip to content

mc_time_toggle_html

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

Filter the HTML for the time format switcher in navigation elements.

Auto-generated Example

add_filter(
   'mc_time_toggle_html',
    function(
        string $toggle,
        string $format,
        string $time
    ) {
        // Your code here.
        return $toggle;
    },
    10,
    3
);

Parameters

  • string $toggle HTML output for control.
  • string $format Current view format.
  • string $time Current time frame.

Returns

string

Files

apply_filters( 'mc_time_toggle_html', $toggle, $format, $time )

← All Hooks

Clone this wiki locally