logout_url filter-hookWP 2.8.0

Filters the logout URL.

Usage

add_filter( 'logout_url', 'wp_kama_logout_url_filter', 10, 2 );

/**
 * Function for `logout_url` filter-hook.
 * 
 * @param string $logout_url The HTML-encoded logout URL.
 * @param string $redirect   Path to redirect to on logout.
 *
 * @return string
 */
function wp_kama_logout_url_filter( $logout_url, $redirect ){

	// filter...
	return $logout_url;
}
$logout_url(string)
The HTML-encoded logout URL.
$redirect(string)
Path to redirect to on logout.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

wp_logout_url()
logout_url
wp-includes/general-template.php 425
return apply_filters( 'logout_url', $logout_url, $redirect );

Where the hook is used in WordPress

Usage not found.