Created
January 30, 2015 04:37
-
-
Save curtismchale/9e6266f939b28b1d2a32 to your computer and use it in GitHub Desktop.
Removes the restricted content display from the user My Account page
This file contains 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 | |
/** | |
* Removes the restricted content display from the account page | |
* | |
* Don't forget that you are now responsible to show the restricted content to your users somewhere else | |
*/ | |
function remove_from_account_page(){ | |
remove_action( 'woocommerce_before_my_account', array( $GLOBALS['wecr_show_content'], 'show_content' ) ); | |
} | |
add_action( 'init', 'remove_from_account_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment