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
38929a1c
authored
2024-01-10 16:51:54 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
custom_redirects
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
cbeff607
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
38929a1
...
...
@@ -322,9 +322,11 @@ function custom_redirects() {
$user
=
wp_get_current_user
();
$updated_profile
=
get_user_meta
(
$user
->
ID
,
'updated_profile'
,
true
);
if
(
!
$updated_profile
){
if
(
!
is_page
(
'/account/profile/'
)
)
{
wp_redirect
(
home_url
(
'/account/profile/'
)
);
die
;
}
}
}
add_action
(
'template_redirect'
,
'custom_redirects'
);
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment