wpdatatables_get_one_level_deep_json_data_from_array_as_string

Contents

Description

This filter retrieves one-level-deep JSON data from an array and returns it as a string.

Usage

add_filter( 'wpdatatables_get_one_level_deep_json_data_from_array_as_string', 'get_one_level_deep_json_data', 10, 3 );

Parameters

  • $boolValue bool
    Boolean value.
  • $url string
    String.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_get_one_level_deep_json_data_from_array_as_string filter hook
function get_one_level_deep_json_data( $boolValue, $url, $tableId ) { 
      if ( $tableId == 1) { 
         // Your code
      } 
}

add_action( 'wpdatatables_get_one_level_deep_json_data_from_array_as_string', 'get_one_level_deep_json_data', 10, 3 );