woocommerce_logout_default_redirect_url filter-hookWC 2.6.9

Get logout endpoint.

Usage

add_filter( 'woocommerce_logout_default_redirect_url', 'wp_kama_woocommerce_logout_default_redirect_url_filter' );

/**
 * Function for `woocommerce_logout_default_redirect_url` filter-hook.
 * 
 * @param string $redirect Redirect URL.
 *
 * @return string
 */
function wp_kama_woocommerce_logout_default_redirect_url_filter( $redirect ){

	// filter...
	return $redirect;
}
$redirect(string)
Redirect URL.

Changelog

Since 2.6.9 Introduced.

Where the hook is called

wc_logout_url()
woocommerce_logout_default_redirect_url
wc_template_redirect()
woocommerce_logout_default_redirect_url
woocommerce/includes/wc-template-functions.php 3628
$redirect = $redirect ? $redirect : apply_filters( 'woocommerce_logout_default_redirect_url', wc_get_page_permalink( 'myaccount' ) );
woocommerce/includes/wc-template-functions.php 39
wp_safe_redirect( str_replace( '&', '&', wp_logout_url( apply_filters( 'woocommerce_logout_default_redirect_url', wc_get_page_permalink( 'myaccount' ) ) ) ) );

Where the hook is used in WooCommerce

Usage not found.