-
-
Save billerickson/33027ef8fc2d6501b5defda334594edf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disable PinIt Button | |
* | |
*/ | |
function ea_disable_pin_on_images( $attr, $attachment ) { | |
$attr['data-pin-nopin'] = 'nopin'; | |
return $attr; | |
} | |
add_filter( 'wp_get_attachment_image_attributes', 'ea_disable_pin_on_images', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just what I was looking for? Just wondering how you would extend this to include logos?