Action: hivepress/v1/models/{model_name}/update_status

do_action( 'hivepress/v1/models/{model_name}/update_status', $object_id, $new_status, $old_status, $object )

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

Parameters:
Name Type Description
$object_id int

Object ID.

$new_status string

New status.

$old_status string

Old status.

$object object

Model object.

Source: