Fixed bug triggering admin panel to not run
This commit is contained in:
parent
7f72fd5832
commit
a56b2f4910
@ -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 );
|
add_action( 'woocommerce_account_content', 'federated_provision_info_content', 1 );
|
||||||
function federated_provision_info_content() {
|
function federated_provision_info_content() {
|
||||||
global $wp;
|
global $wp;
|
||||||
$this_page_url = add_query_arg( $wp->query_vars, home_url() );
|
$home_url = home_url();
|
||||||
if($this_page_url != 'http://feddev.local?page&pagename=my-account'){
|
$this_page_url = add_query_arg( $wp->query_vars, $home_url );
|
||||||
|
if($this_page_url != $home_url . '?page&pagename=my-account'){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user