apply_filters( 'hivepress/v1/models/{model_name}/fields', $fields, $model ) → {array}
Filters model fields. At the time of this hook the model object ID is already available. 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 |
---|---|---|
$fields |
array | Model fields. |
$model |
object | Model object. |
- Source:
Returns:
Model fields.
- Type
- array