scottsweb / wp-instagram-widget

❌ A WordPress widget for showing your latest Instagram photos.
115 stars 62 forks source link

Add filter for adding img attributes #104

Closed feastdesignco closed 4 years ago

feastdesignco commented 5 years ago

usage:

add_filter( 'wpiw_img_attribs', 'my_pinterest_nopin' ); function my_pinterest_nopin( $attributes ){ $attributes .= 'data-pin-nopin="true"'; return $attributes; }

We don't want visitors accidentally pinning the image loaded from Instagram in the widget - it's better if they pin the original. Remove the WPIW images from being pinnable.

See: https://www.wptasty.com/blog/nopin-images

https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes

scottsweb commented 4 years ago

Thanks for your contribution.

This project is being archived (background in #118). Instagram filed a trademark complaint which saw the plugin removed from WordPress.org and then proceeded to block it from accessing instagram.com. All pul requests are being closed and it will soon be in a read only state.