How can I add a “data-pin-nopin” the featured image html?

Simply edit your themes header.php and place the following snippet between the <head></head> tags to prevent pinning globally.

<meta name="pinterest" content="nopin" />

Alternatively you can use the Pinterest Block plugin from which offers you more fine-grained control, also for single posts.

This plugin allows you to block selected posts and pages from getting
pinned on Pinterest.

Pinterest Block Features

  • Blocks pages by inserting the official meta tag from Pinterest. Learn more
  • Block specified page types: blog home page, front page, posts, pages, archives.
  • Block selected posts and pages.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)