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
- Introduced in Jetpack 0.1.0
How to use this hook
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' );