wpdatatables_filter_url_php_array

Contents

Description

The filter allows you to modify the URL used to fetch PHP serialized data before it is processed and displayed as a table in wpDataTables.

Usage

add_filter( 'wpdatatables_filter_url_php_array', 'customize_php_array_url', 10, 2 );

Parameters

  • $url string
    The URL from which the PHP serialized data is fetched.
  • $id int
    The table ID.

Examples

// Callback function for the wpdatatables_filter_url_php_array filter
function customize_php_array_url($url, $id) {
    // Your code here

    return $url;
}

add_filter( 'wpdatatables_filter_url_php_array', 'customize_php_array_url', 10, 2 );