wpdatatables_filter_nested_json_array

Contents

Description

This filter allows you to modify the raw array of nested JSON data fetched from a JSON source before it is processed and displayed as a table.

Usage

add_filter( 'wpdatatables_filter_nested_json_array', 'customize_nested_json_data', 10, 3 );

Parameters

  • $jsonArray array
    The raw array of data parsed from the nested JSON source.
  • $wpId int
    The table ID.
  • $jsonParams string
    The parameters used to fetch the nested JSON data, such as the URL, method, and authentication parameters.

Examples

// Callback function for the wpdatatables_filter_nested_json_array filter
function customize_nested_json_data($jsonArray, $wpId, $jsonParams) {
    // Your code here

    return $jsonArray;
}

add_filter( 'wpdatatables_filter_nested_json_array', 'customize_nested_json_data', 10, 3 );