Skip to content

Commit 9329469

Browse files
authored
Merge pull request #1 from level-level/nav-menu-filter
Add filter to wp_nav_menu arguments
2 parents e54edbe + fa4caee commit 9329469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wp_bem_menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ function bem_menu( $location = 'main_menu', $css_class_prefix = 'main-menu', $cs
173173
$modifiers = '';
174174
}
175175

176-
$args = array(
176+
$args = apply_filters('bem_menu_arguments', array(
177177
'theme_location' => $location,
178178
'container' => false,
179179
'items_wrap' => '<ul class="' . $css_class_prefix . ' ' . $modifiers . '">%3$s</ul>',
180180
'walker' => new walker_texas_ranger( $css_class_prefix, true ),
181-
);
181+
));
182182

183183
if ( has_nav_menu( $location ) ) {
184184
return wp_nav_menu( $args );

0 commit comments

Comments
 (0)