apply_filters( 'hivepress/v1/models/{model_name}', $props, $model ) → {array}
Filters the model properties. The dynamic part of the hook refers to the model name (e.g. listing
). You can check the available models in the includes/models
directory of HivePress.
Parameters:
Name | Type | Description |
---|---|---|
$props |
array | Model properties. |
$model |
object | Model object. |
- Source:
Returns:
Model properties.
- Type
- array