Function Reference/wp clearcookie

来自WordPress中文文档
跳转至: 导航搜索

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

includeonlydiv style=clear:both; background-color:#F7F7F7; border:1px solid #CCCCCC; color:#000000; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;See also index of Function Reference and index of Template Tags./div/includeonlynoinclude

Description

This Template is used by Codex:Template Messages.

Usage

pre 检查到模板循环:模板:Message /pre

Result

检查到模板循环:模板:Message

/noinclude