apply_filters ( 'jetpack_publicize_options', array $options )

Filters the options for Publicize.<p>As of Jetpack 8.5, the array keys could be: attach_media bool If Publicize should send the image to the social media platform. Default false.</p>

Source file: modules/publicize.php

View in GitHub

Parameters

$options

(array) Array of Publicize options.


Changelog

Since: Jetpack 8.5.0


Notes

If you want to restore the previous way Publicize attached an image to a Tweet (instead of relying on a Twitter card), you can use this filter:

add_filter( 'jetpack_publicize_options', function( $option ) { 
    $option['attach_media'] = true;
    return $option;
} );

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 )

Connecting to %s