A WordPress-centric search engine for devs and theme authors



wp_logout ›

Since2.5.0
Deprecatedn/a
wp_logout ( No parameters )
Defined at:
Codex:

Log the current user out.



Source

function wp_logout() {
		wp_destroy_current_session();
		wp_clear_auth_cookie();

		/**
		 * Fires after a user is logged-out.
		 *
		 * @since 1.5.0
		 */
		do_action( 'wp_logout' );
	}
endif;

if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :