wpdatatables_filter_filtering_default_value

Contents

Description

This filter is used to modify the default value applied to a column filter.

Usage

add_filter( 'wpdatatables_filter_filtering_default_value', 'customize_filter_default_value', 10, 3 );

Parameters

  • $defaultValue mixed
    The default value of the filter.
  • $originalHeader string
    The original header text of the column as retrieved from the source data.
  • $tableId integer
    The ID of the table.

Examples

// Callback function for the wpdatatables_filter_filtering_default_value filter hook
function customize_filter_default_value($defaultValue, $originalHeader, $tableId) {
    // Your code

    return $defaultValue;
}

add_filter( 'wpdatatables_filter_filtering_default_value', 'customize_filter_default_value', 10, 3 );