Skip to content

Instantly share code, notes, and snippets.

@nayemDevs
Created April 2, 2016 06:38
Show Gist options
  • Save nayemDevs/9954ff101b020157f59ae7b0a62c1aa0 to your computer and use it in GitHub Desktop.
Save nayemDevs/9954ff101b020157f59ae7b0a62c1aa0 to your computer and use it in GitHub Desktop.
show your message on the login page
add_action( 'woocommerce_before_customer_login_form', 'before_login_message' );
function before_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