Skip to content

mc_format_toggle_html

Joe Dolson edited this page May 15, 2026 · 5 revisions

Filter the HTML for the list/grid/card format switcher in navigation elements.

Auto-generated Example

add_filter(
   'mc_format_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_format_toggle_html', $toggle, $format, $time )

← All Hooks

Clone this wiki locally