do_action( 'DevOwl/Utils/DatabaseVersion/InvalidateKey/$slug', $invalidateKey )
Modify an array of any data and when this data changes, the database version will be invalidated
and therefore the dbDelta
will be called again.
Use case:
- Freemium: Add a tier to the invalidate key so we can invalidate the database version when the tier changes, e.g. when the user switches from Lite to Pro version.
Parameters:
Name | Type | Description |
---|---|---|
$invalidateKey |
array |
- Since:
- 1.19.21