wpdatatables_filter_nested_json_endpoint_args

Contents

Description

This filter prepares the endpoint arguments for processing.

Usage

add_filter( 'wpdatatables_filter_nested_json_endpoint_args', 'filter_nested_json_endpoint_args', 10, 3 );

Parameters

  • $endPointArgs array
    Array of values.
  • $allArgs array
    Array of values.
  • $tableID integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_nested_json_endpoint_args filter hook
function filter_nested_json_endpoint_args( $endPointArgs, $allArgs, $tableID ) { 
    if ( $tableId == 1) { 
         // Your code
    }
}

add_action( 'wpdatatables_filter_nested_json_endpoint_args', 'filter_nested_json_endpoint_args', 10, 3);