wp_clear_auth_cookie
Removes all of the cookies associated with authentication.
Description
wp_clear_auth_cookie();
Usage
if ( !function_exists( 'wp_clear_auth_cookie' ) ) { require_once ABSPATH . WPINC . '/pluggable.php'; } // NOTICE! Understand what this does before running. $result = wp_clear_auth_cookie();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/pluggable.php
- function wp_clear_auth_cookie() {
- /**
- * Fires just before the authentication cookies are cleared.
- *
- * @since 2.7.0
- */
- /** This filter is documented in wp-includes/pluggable.php */
- if ( ! apply_filters( 'send_auth_cookies', true ) ) {
- return;
- }
- // Old cookies
- // Even older cookies
- }