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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
38929a1
...
...
@@ -322,8 +322,10 @@ function custom_redirects() {
$user
=
wp_get_current_user
();
$updated_profile
=
get_user_meta
(
$user
->
ID
,
'updated_profile'
,
true
);
if
(
!
$updated_profile
){
wp_redirect
(
home_url
(
'/account/profile/'
)
);
die
;
if
(
!
is_page
(
'/account/profile/'
)
)
{
wp_redirect
(
home_url
(
'/account/profile/'
)
);
die
;
}
}
}
...
...
Please
register
or
sign in
to post a comment