Skip to content

Commit

Permalink
#4423 added filter to get the menu url
Browse files Browse the repository at this point in the history
  • Loading branch information
syedimran22 committed May 1, 2020
1 parent 30e1982 commit 0ecfdf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -3152,7 +3152,8 @@ function ampforwp_auto_add_amp_in_menu_link( $atts, $item, $args ) {
if(false === strpos($atts['href'], "#")){
$atts['href'] = user_trailingslashit(trailingslashit( $atts['href'] ) . AMPFORWP_AMP_QUERY_VAR);
}
}
}
$atts = apply_filters('auto_add_amp_menu_url',$atts);
return $atts;
}

Expand Down

0 comments on commit 0ecfdf1

Please sign in to comment.