wpdatatables_filter_xml_array

Contents

Description

The filter allows you to modify the array of XML data parsed from an XML source before it is processed and displayed as a table.

Usage

add_filter( 'wpdatatables_filter_xml_array', 'customize_xml_data', 10, 3 );

Parameters

  • $XMLArray array
    The raw array of data parsed from the XML source.
  • $wpId int
    The table ID.
  • $xml string
    The XML source used to fetch and parse the data.

Examples

// Callback function for the wpdatatables_filter_xml_array filter
function customize_xml_data($XMLArray, $wpId, $xml) {
    // Your code here

    return $XMLArray;
}

add_filter( 'wpdatatables_filter_xml_array', 'customize_xml_data', 10, 3 );