Skip to content

Commit e326068

Browse files
authored
add filter to link attributes (#3)
1 parent 79953f1 commit e326068

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wp_bem_menu.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
128128
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) . '"' : '';
129129
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) . '"' : '';
130130

131+
$attributes = apply_filters( 'bem_menu_link_attributes', $attributes, $item );
132+
131133
// Create link markup
132134
if ( is_object( $args ) ) {
133135
$item_output = $args->before;

0 commit comments

Comments
 (0)