wp_ajax_
Like this:
Like Loading...
Appears in:
wordpress-4.0,
wordpress-4.4,
wordpress-4.8,
wordpress-4.9,
wordpress-4.9.4,
wordpress-4.9.5,
wordpress-4.9.6,
wordpress-4.9.7,
wordpress-4.9.8,
wordpress-5.0,
wordpress-5.0.1,
wordpress-5.0.2,
wordpress-5.0.3Hook Type: action
See hook in action
Displaying hooks found in version: wordpress-5.0.3
do_action('wp_ajax_') is found 1 times:
- /wp-admin/admin-ajax.php line 99
095 096 097 098 099 100 101 102 103 104 | * refers to the name of the Ajax action callback being fired.
*
* @since 2.1.0
*/
do_action( 'wp_ajax_' . $_REQUEST [ 'action' ] );
} else {
if ( ! has_action( 'wp_ajax_nopriv_' . $_REQUEST [ 'action' ] ) ) {
wp_die( '0' , 400 );
}
|
Like this:
Like Loading...
See this hook used in plugins:
Examples using wp_ajax_