logout_redirect

logout_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('logout_redirect') is found 1 times:

  • /wp-login.php line 819
    		 * @param string  $redirect_to           The redirect destination URL.
    		 * @param string  $requested_redirect_to The requested redirect destination URL passed as a parameter.
    		 * @param WP_User $user                  The WP_User object for the user that's logging out.
    		 */
    		$redirect_to = apply_filters( 'logout_redirect', $redirect_to, $requested_redirect_to, $user );
    
    		wp_safe_redirect( $redirect_to );
    		exit;
    
    	case 'lostpassword':
    	case 'retrievepassword':
    

See this hook used in plugins: