-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_staging_mode
github-actions[bot] edited this page Jun 20, 2026
·
3 revisions
Turn on staging mode. Staging mode is automatically turned on if WPT_STAGING_MODE constant is defined.
add_filter(
'wpt_staging_mode',
function(
bool $staging_mode,
int|bool $auth,
int $post_ID,
string $service
) {
// Your code here.
return $staging_mode;
},
10,
4
);-
bool$staging_modeTrue to enable staging mode. -
int|bool$authCurrent author. -
int$post_IDPost ID. -
string$serviceService being put into staging.
bool
apply_filters( 'wpt_staging_mode', false, $auth, $post_ID, 'mastodon' )apply_filters( 'wpt_staging_mode', false, $auth, $post_ID, 'bluesky' )apply_filters( 'wpt_staging_mode', false, $auth, $post_ID, 'x' )