Source file: modules/sharedaddy/sharing-sources.php
View in GitHubParameters
- $url
-
(string) Pinterest share URL.
Changelog
Since: Jetpack 3.6.0
Notes
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 = '//www.pinterest.com/pin/create/button/?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