wpdatatables_set_one_level_deep_json_data_separator

Contents

Description

This filter is used to adjust how data in a one-level deep JSON file is separated.

Usage

add_filter( 'wpdatatables_set_one_level_deep_json_data_separator', 'get_one_level_deep_json_data_separator', 10, 3 );

Parameters

  • $url string
    String.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_set_one_level_deep_json_data_separator filter hook
function get_one_level_deep_json_data_separator( '
', $url, $tableId ) { if ( $tableId == 1) { // Your code } } add_action( 'wpdatatables_set_one_level_deep_json_data_separator', 'get_one_level_deep_json_data_separator', 10, 3 );