WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp clearcookie

Description

This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.

Clears the authentication cookie, logging the user out.

This function is deprecated. Use wp_clear_auth_cookie() instead.

Usage

<?php wp_clearcookie(); ?>

Parameters

None.

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.
  • This function is deprecated. Use wp_set_auth_cookie() instead.

Change Log

  • Since: 1.5
  • Deprecated: 2.5.0

Source File

wp_clearcookie() is located in wp-includes/pluggable.php.

Related

See also index of Function Reference and index of Template Tags.