do_action( "wp_ajax_{$_REQUEST[‘action’]}" )
Fires authenticated Ajax actions for logged-in users.
Description Description
The dynamic portion of the hook name, $_REQUEST['action']
, refers to the name of the Ajax action callback being fired.
Source Source
File: wp-admin/admin-ajax.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
As this fires ONLY for logged-in users, for not-logged in users use wp_ajax_nopriv_{$_REQUEST[‘action’]}. Warning: The latter one does NOT fire for logged in users at all! (for “all” users (logged/not logged in), you must use BOTH). :-)