do_action( 'hivepress/v1/models/{model_name}/search', $query, $fields )
Fires when models are being searched. The dynamic part of the hook refers to the model name (e.g. listing, vendor).
Parameters:
| Name | Type | Description |
|---|---|---|
$query |
WP_Query | Search query. |
$fields |
array | Search fields. |
- Source: