Created
September 25, 2013 14:12
-
-
Save billerickson/6700212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Apply Dropdown Menu Class to Primary Only | |
* | |
* @author Bill Erickson | |
* @link https://gist.github.com/billerickson/6700212 | |
* | |
* @param array $menus, theme locations | |
* @return array $menus | |
*/ | |
function be_dropdown_class_on_primary( $menus ) { | |
return array( 'primary' ); | |
} | |
add_filter( 'dropdown_menu_class_menus', 'be_dropdown_class_on_primary' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment