wpdatatables_filter_editing_default_value

Contents

Description

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

Usage

add_filter( 'wpdatatables_filter_editing_default_value', 'customize_editing_default_value', 10, 3 );

Parameters

  • $defaultValue mixed
    The default value set for the editable field.
  • $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_editing_default_value filter hook
function customize_editing_default_value($defaultValue, $originalHeader, $tableId) {
    // Your code

    return $defaultValue;
}

add_filter( 'wpdatatables_filter_editing_default_value', 'customize_editing_default_value', 10, 3 );