Skip to content

Instantly share code, notes, and snippets.

@everaldomatias
Last active October 21, 2022 19:08
Show Gist options
  • Save everaldomatias/d8e084c985f9ba23cb71d0f82a63c0ea to your computer and use it in GitHub Desktop.
Save everaldomatias/d8e084c985f9ba23cb71d0f82a63c0ea to your computer and use it in GitHub Desktop.
Add message on WooCommerce login form
<?php
function custom_add_message_login_form() {
echo '<div class="form-login-message">';
echo 'Ao fazer login, você concorda com os <a href="">termos de serviço</a> e <a href="">política de privacidade</a> da <a href="' . home_url() . '">Escola</a>';
echo '</div>';
}
add_action( 'woocommerce_login_form_end', 'custom_add_message_login_form', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment