Skip to content

Instantly share code, notes, and snippets.

@bolderelements
Created March 5, 2018 20:27
Show Gist options
  • Save bolderelements/3abd122efe4b5a7ffd42dd2e7030572c to your computer and use it in GitHub Desktop.
Save bolderelements/3abd122efe4b5a7ffd42dd2e7030572c to your computer and use it in GitHub Desktop.
Combine Favorites and Subscriptions tabs in Bolder Product Alerts for WooCommerce
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