SearchWP

Available since: 2.7.1

searchwp_stats_before_query

View Parameters »

This action fires before each query is output when building a stats table.

<?php
add_action( 'searchwp_stats_before_query', function() {
echo 'Before search query';
}, 10, 2 );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$query String

The search query

$args Array

The arguments associated with the query, namely the engine used