Created
May 2, 2014 09:36
-
-
Save michaelwilhelmsen/4e5c98df6107de224e0e to your computer and use it in GitHub Desktop.
Encourage people to register on your site by adding a message above the login/registration form.
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_before_customer_login_form', 'jk_login_message' ); | |
| function jk_login_message() { | |
| if ( get_option( 'woocommerce_enable_myaccount_registration' ) == 'yes' ) { | |
| ?> | |
| <div class="woocommerce-info"> | |
| <p><?php _e( 'Returning customers login. New users register for next time so you can:' ); ?></p> | |
| <ul> | |
| <li><?php _e( 'View your order history' ); ?></li> | |
| <li><?php _e( 'Check on your orders' ); ?></li> | |
| <li><?php _e( 'Edit your addresses' ); ?></li> | |
| <li><?php _e( 'Change your password' ); ?></li> | |
| </ul> | |
| </div> | |
| <?php | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment