Filter: wpt_staging_mode

apply_filters( 'wpt_staging_mode', $staging_mode, $auth, $id ) → {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.

Source:
Returns:
Type
bool

apply_filters( 'wpt_staging_mode', $staging_mode, $auth, $id ) → {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.

Source:
Returns:
Type
bool