Select Page

Filters for adding additional data to ajax response

Parameters

  1. response – response with data

Warning

Don’t change array structure and information if you didn’t know for what is it.

Usage

<?php
function berocket_ajax_response_filters ( $response ) {
//your code here
    $response['my_data'] = $my_data;
    return $response;
}

add_filter( 'berocket_ajax_response_without_fix', 'berocket_ajax_response_filters' );
?>