Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jaiunblog

    (@jaiunblog)

    found !
    add_action('wp_logout','go_home',10000);

    Hi,

    One suggestion,

    You can use the PHP_INT_MAX constant instead of a fixed number, to be sure it’s always called last

    add_action( 'wp_logout', 'go_home', PHP_INT_MAX );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘logout action’ is closed to new replies.