Agregar Términos y Condiciones en el formulario de registro de WooCommerce

add_action( woocommerce_register_form, function() {
wc_get_template( checkout/terms.php );
} );
add_action( woocommerce_process_registration_errors, function( $errors, $username, $password, $email ){
if ( empty( $_POST[terms] ) ) {
throw new Exception( __( You must accept the terms and conditions in order to register., text-domain ) );
}
return $errors;
}, 10, 4 );

 

Soporte

Usa el buscador de temas y encuentra lo que necesitas

¿Aún no lo encuentras?
Contacta al servicio de soporte