Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_logout ›

Da2.5.0
Deprecaton/a
wp_logout ( Nessun parametro )
Definito a:
Codex:

Log the current user out.



Sorgenti

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

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

if ( ! function_exists( 'wp_validate_auth_cookie' ) ) :