apply_filters ( 'jetpack_sharing_pinterest_widget_type', string $type )

Filters the Pinterest widget type.

Source file: modules/sharedaddy/sharing-sources.php

View in GitHub

Parameters

$type

(string) Pinterest widget type. Default of ’buttonPin’ for single-image selection. ’buttonBookmark’ for multi-image modal.


Changelog

Since: Jetpack 3.6.0


Notes

You can use this filter to change from the default—a single image Pinterest pin—to the multi-image picker:

function bk_jetpack_pinterest_widget( $widget ){
    return 'buttonBookmark';
}
add_filter( 'jetpack_sharing_pinterest_widget_type', 'bk_jetpack_pinterest_widget' );

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