wc_get_logout_redirect_url()
Get the redirect URL after logging out. Defaults to the my account page.
Hooks from the function
Return
String
.
Usage
wc_get_logout_redirect_url();
Changelog
Since 9.3.0 | Introduced. |
wc_get_logout_redirect_url() wc get logout redirect url code WC 9.4.2
function wc_get_logout_redirect_url() { /** * Filters the logout redirect URL. * * @since 2.6.9 * @param string $logout_url Logout URL. * @return string */ return apply_filters( 'woocommerce_logout_default_redirect_url', wc_get_page_permalink( 'myaccount' ) ); }