Filter: hivepress/v1/models/{model_name}/attributes

apply_filters( 'hivepress/v1/models/{model_name}/attributes', $attributes ) → {array}

Filters model attributes. By adding a new attribute to the filtered array, you can add a new field to the model forms and meta boxes, enable the search filter and a sorting option for it. The dynamic part of the hook refers to the model name (e.g. listing, vendor).

Parameters:
Name Type Description
$attributes array

Attribute configurations.

Source:
Returns:

Attribute configurations.

Type
array