Created
August 3, 2017 08:38
-
-
Save rynaldos-zz/93afb050b6275494c18ae533d109eba9 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Custom my-account message / notice for logged out users
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
add_action( 'woocommerce_after_customer_login_form', 'wc_myacc_message' ); | |
function wc_myacc_message() { | |
if ( get_option( 'woocommerce_enable_myaccount_registration' ) == 'yes' ) { | |
?> | |
<div class="woocommerce-info"> | |
<p><?php _e( 'your custom message goes here' ); ?></p> | |
</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment