Last active
February 5, 2022 21:52
-
-
Save bekarice/62cc848397fdedb02cfe to your computer and use it in GitHub Desktop.
Revisions
-
bekarice revised this gist
Jan 20, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ */ function sv_remove_my_memberships_table() { if ( function_exists( 'wc_memberships' ) && ! is_admin() ) { remove_action( 'woocommerce_before_my_account', array( wc_memberships()->get_frontend_instance()->get_members_area_instance(), 'my_account_memberships' ) ); } } add_action( 'init', 'sv_remove_my_memberships_table', 50 ); -
bekarice revised this gist
Jun 8, 2016 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ <?php // Only copy this line if needed /** * Removes the "My Memberships" table from my account area */ function sv_remove_my_memberships_table() { if ( function_exists( 'wc_memberships' ) && ! is_admin() ) { remove_action( 'woocommerce_before_my_account', array( wc_memberships()->get_frontend_instance()->get_member_area_instance(), 'my_account_memberships' ) ); } } add_action( 'init', 'sv_remove_my_memberships_table', 50 ); -
bekarice created this gist
Aug 26, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php /** * Only copy the opening php tag if needed * Removes the "My Memberships" table from my account area */ function sv_remove_my_memberships_table() { if ( function_exists( 'wc_memberships' ) ) { remove_action( 'woocommerce_before_my_account', array( wc_memberships()->frontend, 'my_account_memberships' ) ); } } add_action( 'init', 'sv_remove_my_memberships_table' );