Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress logout redirect to home

// On functions.php of your child theme or in a code snippet:
add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
  wp_redirect( home_url() );
  exit();
}
Comment

PREVIOUS NEXT
Code Example
Php :: alert in php 
Php :: print query in laravel 
Php :: email validation in laravel 
Php :: php time format 
Php :: object to array in php 
Php :: php get client ip 
Php :: echo alert php 
Php :: Making visible or hidden attributes from Eloquent temporarily 
Php :: laravel check method is post 
Php :: insert rows in migrations laravel 
Php :: doctrine php driver execption 
Php :: check is domain php 
Php :: laravel php short if 
Php :: php ip 
Php :: laravel destroy session 
Php :: homebrew switch php 
Php :: laravel route fallback 
Php :: laravel make migration update table 
Php :: get the value of href in anchar tag php 
Php :: Yii2 Stripe Webhook testing: "[ERROR] Failed to Post" 
Php :: post thumbnail 
Php :: php detect mobile 
Php :: php get content phpinfo without show 
Php :: cast string to int php 
Php :: delete record php mysqli 
Php :: php parse xml 
Php :: php remove slashes from json 
Php :: pathtophp in ubuntu lampp in moodle 
Php :: route group controller laravel 
Php :: php hide decimals if zero 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =