wpdatatables_before_generate_constructed_table_name

Contents

Description

This filter is applied to the name which will be used as a MySQL table name before it is generated by a Table constructor.

Usage

add_filter( 'wpdatatables_before_generate_constructed_table_name', 'before_generate_constructed_table_name' );

Parameters

  • $tableName string
    MySQL table name.

Examples

// Callback function for the wpdatatables_before_generate_constructed_table_name filter hook
function before_generate_constructed_table_name( $tableName ) { 
    // Your code
}

add_action( 'wpdatatables_before_generate_constructed_table_name', 'before_generate_constructed_table_name');