Publicize: publicize_checkbox_default filter not respected
The publicize_checkbox_default filter no longer seems to be working to prevent Publicize connections from being auto-selected.
Steps to repro:
- On a site with active Publicize connections, include
add_filter( 'publicize_checkbox_default', '__return_false' );in functions.php or a functionality plugin. - Create a new post: Dashboard > Posts > Add New.
- Note the Publicize options in the Publish meta box.
Expected: No options are selected. Actual: All options are selected.
It's worth noting that after clicking the "Edit Details" link that the checkboxes are then deselected. Here is a gif for reference:

This is also not respected when posting from android or importing stuff from like ifttt.com. It only works from desktop.
@jeherve + @jkudish - this seems to be a good candidate for the Publicize Next ( https://github.com/Automattic/jetpack/milestones/Publicize%20Next ) milestone - no?
This filter is likely to die off soon and be replaced with something else. Stay tuned.
Also reported here: https://wordpress.org/support/topic/publicize-options?replies=4#post-6941787
Also reported here: https://wordpress.org/support/topic/opt-in-to-publicize-to-facebook-instead-of-opt-out?replies=1
Also here: 2750972-t
Is this going to be fixed?
@RoySmyth This will be fixed, but I'm afraid I don't have an ETA yet. We'll update this issue as soon as we start working on the problem.
So, what is the deal with this? Will it be fixed? Will it be replaced by something else?
@axtho We are not working on Publicize right now, but when we do we'll update this issue.
Good news. I figured out a workaround.
First, install the Add Admin Javascript plugin.
Then in the plugin settings "Admin jQuery JavaScript" box, paste the following script:
/* Disable Jetpack Publicize by default */
$('.wpas-submit-facebook, .wpas-submit-twitter, .wpas-submit-linkedin, .wpas-submit-tumblr, .wpas-submit-path, .wpas-submit-google_plus').prop('checked', false);
Any clues on when you'll work on Publicize and fix this?
@arunsathiya We do not have an ETA for this fix right now, but we'll update this issue when we do.
932618-zen
Is there an open issue that tracks the need to prevent plugins (like UltimateMember) from causing Publicize to fire during plugin activation?
@ChipNowacek Not yet. Could you create a new issue and tell us more about that problem?
Thank you!
1337327-zen
1350197-zen
1443744-zen
1464622-zen https://developer.jetpack.com/hooks/publicize_checkbox_default/#comment-13714