From a56b2f49108d70de7d19b060835a35488a114d08 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Thu, 2 May 2024 15:51:56 -0600 Subject: [PATCH] Fixed bug triggering admin panel to not run --- woocommerce/my_account_customizations.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/woocommerce/my_account_customizations.php b/woocommerce/my_account_customizations.php index 203049c..a4baf1a 100644 --- a/woocommerce/my_account_customizations.php +++ b/woocommerce/my_account_customizations.php @@ -46,8 +46,9 @@ add_filter( 'woocommerce_account_menu_items', 'federated_add_provision_info_link add_action( 'woocommerce_account_content', 'federated_provision_info_content', 1 ); function federated_provision_info_content() { global $wp; - $this_page_url = add_query_arg( $wp->query_vars, home_url() ); - if($this_page_url != 'http://feddev.local?page&pagename=my-account'){ + $home_url = home_url(); + $this_page_url = add_query_arg( $wp->query_vars, $home_url ); + if($this_page_url != $home_url . '?page&pagename=my-account'){ return; }