From 0ecfdf1098bc4ca2597c2d8ba836fb13b24a0747 Mon Sep 17 00:00:00 2001 From: Syed Imran <41104393+syedimran22@users.noreply.github.com> Date: Fri, 1 May 2020 16:16:30 +0530 Subject: [PATCH] #4423 added filter to get the menu url --- templates/features.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/features.php b/templates/features.php index 7bd0b0ae8..7bf348af1 100644 --- a/templates/features.php +++ b/templates/features.php @@ -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; }