Created
March 5, 2018 20:27
-
-
Save bolderelements/3abd122efe4b5a7ffd42dd2e7030572c to your computer and use it in GitHub Desktop.
Combine Favorites and Subscriptions tabs in Bolder Product Alerts for WooCommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bepawc_remove_product_subscriptions( $items ) { | |
unset( $items['product-subscriptions'] ); | |
return $items; | |
} | |
add_filter( 'woocommerce_account_menu_items', 'bepawc_remove_product_subscriptions', 999 ); | |
add_action( 'woocommerce_account_favorite-products_endpoint', array( $be_product_alerts->account->subscriptions, 'display_account_settings' ), 50 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment