do_action( 'hivepress/v1/models/{model_name}/relate', $query, $object )
Fires when related models are being queried. The dynamic part of the hook refers to the model name (e.g. listing
).
Parameters:
Name | Type | Description |
---|---|---|
$query |
object | Related query. |
$object |
object | Model object. |
- Source: