do_action( 'hivepress/v1/models/{model_name}/{action_type}', $object_id, $object )
Fires when the model (e.g. listing
or vendor
) object is created, updated or deleted. The last part of the hook refers to the action type (create
, update
or delete
). For example, use the hivepress/v1/models/listing/update
hook to call a custom function each time a listing is updated.
Parameters:
Name | Type | Description |
---|---|---|
$object_id |
int | Object ID. |
$object |
object | Model object. |
- Source: