Action: hivepress/v1/models/{model_name}/update_{field_name}

do_action( 'hivepress/v1/models/{model_name}/update_{field_name}', $object_id, $value )

Fires when a specific model (e.g. listing or vendor) object field is updated. The last part of the hook refers to the field name. For example, use the hivepress/v1/models/listing/update_image hook to call a custom function each time the listing image is changed.

Name Type Description
$object_id int

Object ID.

$value mixed

Field value.