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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |