apply_filters( 'wpt_staging_mode', $staging_mode, $auth, $id, $service ) → {bool}
Turn on staging mode. Staging mode is automatically turned on if WPT_STAGING_MODE constant is defined.
Parameters:
Name | Type | Description |
---|---|---|
$staging_mode |
bool | True to enable staging mode. |
$auth |
int | bool | Current author. |
$id |
int | Post ID. |
$service |
string | Service being put into staging. |
- Source:
Returns:
- Type
- bool