Filter: wpt_staging_mode

apply_filters( 'wpt_staging_mode', bool, int|bool, int, string )

Turn on staging mode. Staging mode is automatically turned on if WPT_STAGING_MODE constant is defined.

Parameters:
Name Type Description
bool

$staging_mode True to enable staging mode.

int|bool

$auth Current author.

int

$id Post ID.

string

$service Service being put into staging.

Source:
Returns:

bool

apply_filters( 'wpt_staging_mode', bool, int|bool, int, string )

Turn on staging mode. Staging mode is automatically turned on if WPT_STAGING_MODE constant is defined.

Parameters:
Name Type Description
bool

$staging_mode True to enable staging mode.

int|bool

$auth Current author.

int

$id Post ID.

string

$service Service being put into staging.

Source:
Returns:

bool

apply_filters( 'wpt_staging_mode', bool, int|bool, int, string )

Turn on staging mode. Staging mode is automatically turned on if WPT_STAGING_MODE constant is defined.

Parameters:
Name Type Description
bool

$staging_mode True to enable staging mode.

int|bool

$auth Current author.

int

$id Post ID.

string

$service Service being put into staging.

Source:
Returns:

bool