Filter: mc_header_navigation

apply_filters( 'mc_header_navigation', $mc_toporder, $used, $params ) → {array}

Filter the order in which navigation elements are shown on the top of the calendar. Insert custom navigation elements by adding a value into the array with a callable function as a value. E.g. my_custom_nav, that expects the $params array as an argument.

Parameters:
Name Type Description
$mc_toporder array

Array of navigation elements.

$used array

Array of all navigation elements in use for this view.

$params array

Current calendar view parameters.

Since:
  • 3.4.0
Source:
Returns:
Type
array