Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeremy Groot
/
stellervista-Intranet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7d2ad53e
authored
2024-01-10 16:26:52 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
wpo365_user_created
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
8add9d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
7d2ad53
...
...
@@ -299,15 +299,16 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) {
}
//add_action( 'wpo365/user/creating', 'registration_redirect', 10, 1 );
function
registration_redirect
()
{
error_log
(
'registration_redirect'
);
wp_redirect
(
site_url
(
'/account/profile/'
));
error_log
(
'redirected'
);
}
// Add your custom function to the wpo365_user_created hook
add_action
(
'wpo365_user_created'
,
'custom_redirect_after_user_created'
,
10
,
2
);
function
custom_redirect_after_user_created
(
$user_id
,
$provider
)
{
add_filter
(
'registration_redirect'
,
'registration_redirect'
);
\ No newline at end of file
error_log
(
'registration_redirect'
);
// Redirect the user after user creation based on your requirements
wp_redirect
(
'/account/profile/'
);
exit
();
}
...
...
Please
register
or
sign in
to post a comment