wpdatatables_filter_sql_disable_limit

Contents

Description

The filter allows you to enable or disable the SQL LIMIT clause in wpDataTables queries.

Usage

add_filter('wpdatatables_filter_sql_disable_limit', 'custom_sql_disable_limit', 10, 2);

Parameters

  • $disableLimit boolean
    A boolean value that determines whether the SQL LIMIT clause should be disabled.
  • $connection object
    The database connection.

Examples

// Callback function for the wpdatatables_filter_sql_disable_limit filter
function custom_sql_disable_limit($disableLimit, $connection) {
    // Your code here

    return $disableLimit;
}

add_filter('wpdatatables_filter_sql_disable_limit', 'custom_sql_disable_limit', 10, 2);