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; }