wp_ajax_

wp_ajax_

Hook Type: action
See hook in action

See hook in core

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 no action is registered, return a Bad Request response.
        if ( ! has_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] ) ) {
            wp_die( '0', 400 );
        }

See this hook used in plugins:

Examples using wp_ajax_