add function not working in child theme but works fine in parent theme
-
Hi
So I have a block of code that redirect users after they login to the home page. That code is as follows.
if( !function_exists('custom_user_login_redirect') ) { function custom_user_login_redirect() { $redirect_to = 'https://wingmebro.com/'; return $redirect_to; } add_filter('login_redirect','custom_user_login_redirect',10,3); }
When I put this in the parent theme functions.php it works fine
But once is put it in the child theme functions.php it doesnt work. It just appears at the top of the home page.
Where am I screwing up? I played around with the priority and args numbers but that didn’t help.
Any help would be much appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘add function not working in child theme but works fine in parent theme’ is closed to new replies.