Created
May 14, 2021 05:31
-
-
Save wbcomdev/5d9bd3d662db9a55de99cbf3bc0c5305 to your computer and use it in GitHub Desktop.
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 a message above the login / register form on my-account page. | |
| */ | |
| function wb_login_message() { | |
| if ( get_option( 'woocommerce_enable_myaccount_registration' ) == 'yes' ) { | |
| ?> | |
| <div class="woocommerce-info"> | |
| <p><?php esc_html_e( 'Returning customers login. New users register for next time so you can:' ); ?></p> | |
| <ul> | |
| <li><?php esc_html_e( 'View your order history' ); ?></li> | |
| <li><?php esc_html_e( 'Check on your orders' ); ?></li> | |
| <li><?php esc_html_e( 'Edit your addresses' ); ?></li> | |
| <li><?php esc_html_e( 'Change your password' ); ?></li> | |
| </ul> | |
| </div> | |
| <?php | |
| } | |
| } | |
| add_action( 'woocommerce_before_customer_login_form', 'wb_login_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment