{"id":18003916,"date":"2024-09-09T15:11:32","date_gmt":"2024-09-09T15:11:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/lightbox-hook\/"},"modified":"2024-09-09T15:11:32","modified_gmt":"2024-09-09T15:11:32","slug":"lightbox-hook","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/lightbox-hook\/","title":{"rendered":"lightbox hook"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">hi!<br \/><br \/>i&#8217;m trying to enable the lightbox for the images uploaded to the pins; <br \/>i&#8217;ve added the hook &#8216;Customize location bubble image (eg. to add a lightbox)&#8217; to the site&#8217;s funcions.php, but can&#8217;t get it to work..<br \/>maybe i&#8217;m missing something i shoul insert in the hook below?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add_filter(&#8216;oum_location_bubble_image&#8217;, function ( $image, $location ) { \/\/ extend or change image $image = &#8216;&lt;a class=&#8221;lightbox&#8221; href=&#8221;&#8216; . $location[&#8216;image&#8217;] . &#8216;&#8221;&gt;&#8217; . $image . &#8216;&lt;\/a&gt;&#8217;; return $image; }, 10, 2);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">thank you!<\/p>\n","protected":false},"template":"","class_list":["post-18003916","topic","type-topic","status-publish","hentry","topic-tag-hook"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18003916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18003916\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18003916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}