added redirection without need of a page, use it for paypal success or failure message already
This commit is contained in:
@@ -46,6 +46,8 @@ function handle_prof_is_activ_CIPF($author_id) {
|
||||
*/
|
||||
$redirection_prof_inactiv = home_url() . '/' . $slug_wait_activation;
|
||||
|
||||
// Set up nocache headers before redirecting : https://developer.wordpress.org/reference/functions/wp_safe_redirect/#user-contributed-notes
|
||||
nocache_headers();
|
||||
wp_redirect($redirection_prof_inactiv, 301);
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user