filter

publicize_checkbox_default

Filter the checkbox state of each Publicize connection appearing in the post editor.

Parameters

$enabled
bool

Should the Publicize checkbox be enabled for a given service.

$post_id
int

Post ID.

$service_name
string

Service name.

$connection
array

Array of connection details.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

Ever accidentally publicize a post that you didn’t mean to? This snippet will prevent the connections from being auto-selected, so you need to manually select them if you’d like to publicize something.
add_filter( 'publicize_checkbox_default', '__return_false' );