search_meter_history_size

search_meter_history_size

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: search-meter.2.13.5

apply_filters('search_meter_history_size') is found 1 times:

  • /search-meter.php line 333

    FROM `{$wpdb->prefix}searchmeter_recent`”);

    // History size can be overridden by a user by adding a line like this to functions.php:
    // add_filter(‘search_meter_history_size’, function() { return 50000; });
    $history_size = apply_filters(‘search_meter_history_size’, 500);

    // Ensure history table never grows larger than (history size) + 100; truncate it
    // to (history size) when it gets too big. (This we way will only truncate the table
    // every 100 searches, rather than every time.)
    if ($history_size + 100 < $rowcount) { [/php]

See this hook used in plugins: