-
Notifications
You must be signed in to change notification settings - Fork 4
Data Model Hooks
Wordpress hooks related to the DataModel class.
NOTE: Replace {table}
with the model's table name; following the samples in at the DataModel article, in the following samples. {table}
would be replaced with model_table
.
Filters the default retuned value in protected_properties()
(See documentation).
Parameter | Type | Description |
---|---|---|
$excluded | array |
List of excluded properties. |
Returns: array
.
Triggered by the model's save()
method (See documentation) after data is updated in the database.
Parameter | Type | Description |
---|---|---|
$model | Model |
Updated model instance. |
Triggered by the model's save()
or static::inserted()
methods (See documentation) after data is saved in the database.
Parameter | Type | Description |
---|---|---|
$model | Model |
Inserted model instance. |
Triggered by the model's save()
method (See documentation) after data is saved in the database (inserted or updated).
Parameter | Type | Description |
---|---|---|
$model | Model |
Saved model instance. |
Triggered by the model's delete()
method (See documentation) after record is deleted from the database.
Parameter | Type | Description |
---|---|---|
$model | Model |
Deleted model instance. |
Triggered when the model is filled with data when sataitc::find()
is called (See documentation).
Parameter | Type | Description |
---|---|---|
$model | Model |
Loaded model instance. |
(c) 2019 - 10 Quality - Query Builder Library for Wordpress