wphooks.info - wp_ajax_{$action}

wp_ajax_{$action}

(trunk - 5.0-alpha-42541)

*** New in trunk ***

The hook occurs in the following file:

wp-admin/admin-ajax.php:
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
	}

	/**
	 * Fires authenticated Ajax actions for logged-in users.
	 *
	 * The dynamic portion of the hook name, `$action`, refers
	 * to the name of the Ajax action callback being fired.
	 *
	 * @since 2.1.0
	 */
	do_action( "wp_ajax_{$action}" );
} else {
	// If no action is registered, return a Bad Request response.
	if ( ! has_action( "wp_ajax_nopriv_{$action}" ) ) {
		wp_die( '0', 400 );
	}

	/**
	 * Fires non-authenticated Ajax actions for logged-out users.
	 *