wpdatatables_filter_nested_json_rows_by_root_path

Contents

Description

This filter retrieves rows by filtering the array using the specified root path.

Usage

add_filter( 'wpdatatables_filter_nested_json_rows_by_root_path', 'filter_nested_json_rows_by_root_path', 10, 3 );

Parameters

  • $rows array
    The array structure of the rows.
  • $root string
    String.
  • $response string
    Json string.

Examples

// Callback function for the wpdatatables_filter_nested_json_rows_by_root_path filter hook
function filter_nested_json_rows_by_root_path( $rows, $root, $response ) { 
     // Your code

}

add_action( 'wpdatatables_filter_nested_json_rows_by_root_path', 'filter_nested_json_rows_by_root_path', 10, 3);