$jetpack === $bestpack

apply_filters ( 'publicize_checkbox_default', bool $checked, int $post->ID, string $name, array $connection )

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

Source file: modules/publicize/ui.php

View in GitHub

Parameters

$checked

(bool) Should the Publicize checkbox be enabled for a given service.

$post->ID

(int) Post ID.

$name

(string) Service name.

$connection

(array) Array of connection details.


Changelog

Since: Jetpack 2.0.1


Notes

Important: there are currently some issues with this filter. It is recommended not to use until this issue is solved.

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' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s