learndash_30_nav_menus

apply_filters( 'learndash_30_nav_menus',  array $locations )

Filters nav menu locations


Description #


Parameters #

$locations

(array) An Associative array of menu location identifiers (like a slug) and descriptive text.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_30_nav_menus filter.
 */
add_filter(
	'learndash_30_nav_menus',
	function( $locations ) {
		// May add any custom logic using $locations.

		// Always return $locations.
		return $locations;
	}
);