Skip to content

Instantly share code, notes, and snippets.

@jrick1229
Created December 11, 2018 21:21
Show Gist options
  • Save jrick1229/1e9f3c82c05b5b981e1682317584360b to your computer and use it in GitHub Desktop.
Save jrick1229/1e9f3c82c05b5b981e1682317584360b to your computer and use it in GitHub Desktop.
Change the 'Subscriptions' text in the My Account area -- Copied from: https://gist.github.com/jorgeatorres/f2577267a28041da15f4dd2584f91aea
<?php
add_filter( 'woocommerce_account_menu_items', function( $items ) {
if ( isset( $items['subscriptions'] ) ) {
$items['subscriptions'] = 'My new menu item label';
}
return $items;
}, 11 );
@jrick1229
Copy link
Author

This doesn't change the endpoint for the URL, just the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment