wp_clearcookie

Advertisement

Deprecated Deprecated

This function has been deprecated. Use wp_clear_auth_cookie() instead.

Summery Summery

Clears the authentication cookie, logging the user out. This function is deprecated.

Syntax Syntax

wp_clearcookie()

Source Source

File: wp-includes/pluggable-deprecated.php

function wp_clearcookie() {
	_deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' );
	wp_clear_auth_cookie();
}

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Use wp_clear_auth_cookie()
1.5.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.