clear_auth_cookie
Fires just before the authentication cookies are cleared.
Description
do_action( 'clear_auth_cookie' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'clear_auth_cookie' );
- The following example is for adding a hook callback.
- // define the clear_auth_cookie callback
- function action_clear_auth_cookie( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'clear_auth_cookie', 'action_clear_auth_cookie', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'clear_auth_cookie', 'action_clear_auth_cookie', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/pluggable.php
- do_action( 'clear_auth_cookie' );