apply_filters ( 'jetpack_sharing_pinterest_share_url', string $url )

Filters the Pinterest share URL used in sharing button output.

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

View in GitHub



(string) Pinterest share URL.


Since: Jetpack 3.6.0


You can use this filter to customize the Pinterest sharing URL. You could, for example, allow Pinterest to select just about any image on the page instead of picking the post’s Featured Image:

function jeherve_multiple_images_pinterest( $url ) {
	global $post;

	if ( ! $post ) {
		return $url;

	$url = '//' . rawurlencode( get_permalink( $post->ID ) ) . '&description=' . rawurlencode( $post->post_title );

	return $url;
add_filter( 'jetpack_sharing_pinterest_share_url', 'jeherve_multiple_images_pinterest' );

Have a question?

Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.

View support forum