Created
February 2, 2026 08:07
-
-
Save woogist/e482e4d6b31909beced1d9b307d78f96 to your computer and use it in GitHub Desktop.
[WooCommerce Memberships] Rename the section links for the "Member Area"
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
| <?php // only copy this line if needed | |
| /** | |
| * Rename the section links for the "Member Area" | |
| * Can rename any section links using the section ID | |
| * | |
| * @param array $sections the array of section link IDs and text | |
| * @return array $sections the updated array of section links | |
| */ | |
| function sv_wc_memberships_rename_member_area_sections( $sections ) { | |
| $sections['my-membership-content'] = __( 'Club Articles', 'my-text-domain' ); | |
| $sections['my-membership-products'] = __( 'Club Products', 'my-text-domain' ); | |
| $sections['my-membership-discounts'] = __( 'Exclusive Discounts', 'my-text-domain' ); | |
| $sections['my-membership-notes'] = __( 'Notes from MySite', 'my-text-domain' ); | |
| return $sections; | |
| } | |
| add_filter( 'wc_membership_plan_members_area_sections', 'sv_wc_memberships_rename_member_area_sections' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment