Redirect to a page on expiry date
-
Hi Ben,
If a user date is expired,I want to redirect to a specific page informing the current user that his account is no longer valid.
I have put this in header.php in my theme://<?php
if ( is_user_logged_in() ) {
$expire_user = new Expire_User( get_current_user_id() );
$expire_time = $expire_user->expire_timestamp;
if ( $expire_time ) {
wp_redirect(‘”Redirection-page-Url”‘);
}
}
?>//
but it’s not working.
Please help.
- The topic ‘Redirect to a page on expiry date’ is closed to new replies.