wp_ajax_logged_in() WordPress Function

The wp_ajax_logged_in() function is used to check if the current user is logged in. If the user is logged in, the function will return true. Otherwise, it will return false.

wp_ajax_logged_in() #

Ajax handler for Customizer preview logged-in status.


Source

File: wp-admin/includes/ajax-actions.php

function wp_ajax_logged_in() {
	wp_die( 1 );
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More