Skip to content

Instantly share code, notes, and snippets.

@jjmontalban
Last active February 3, 2023 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjmontalban/3c231cc2c0ce0b829428246128543097 to your computer and use it in GitHub Desktop.
Save jjmontalban/3c231cc2c0ce0b829428246128543097 to your computer and use it in GitHub Desktop.
redirige tras registro en Woocommerce
<?php
/* Redireccion tras registro */
add_filter( 'woocommerce_registration_redirect', 'custom_redirection_registration', 10, 1 );
function custom_redirection_registration( $redirection_url )
{
$redirection_url = get_home_url();
return $redirection_url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment