wpdatatables_filter_excel_based_data_url

Contents

Description

The filter allows you to modify the URL of the Excel file before it is loaded and processed as a table.

Usage

add_filter( 'wpdatatables_filter_excel_based_data_url', 'customize_excel_url', 10, 2 );

Parameters

  • $xls_url string
    The URL of the Excel file to be loaded.
  • $wpId int
    The table ID.

Examples

// Callback function for the wpdatatables_filter_excel_based_data_url filter
function customize_excel_url($xls_url, $wpId) {
    // Your code here

    return $xls_url;
}

add_filter( 'wpdatatables_filter_excel_based_data_url', 'customize_excel_url', 10, 2 );