wpdatatables_try_generate_table_result

Contents

Description

This filter is applied to the result of the initial table which is generated when a new wpDataTable is first saved (this method tries to generate a table and prepares the metadata in case of success).

Usage

add_filter( 'wpdatatables_try_generate_table_result', 'try_generate_table_result' );

Parameters

  • $result object
    wpDataTable object (class source/class.wpdatatable.php).

Examples

// Callback function for the wpdatatables_try_generate_table_result filter hook
function try_generate_table_result( $result ) { 
    // Your code
}

add_action( 'wpdatatables_try_generate_table_result', 'try_generate_table_result');