getBBCode(); if (!empty($bbCode) and strlen($bbCode) > 10) { global $product; $attachment_ids = $product->get_gallery_image_ids(); $text = ''; if ($e == end($attachment_ids)) { $html = (new JSV_360_Parser($this->plugin_name, $this->version))->parse($bbCode); if(empty(trim($html))){ $text .= sprintf('', $bbCode); } $randomId = $this->generateId(); $thumbImage = plugins_url('/icon.png', __FILE__); $text .= sprintf( ' ', $thumbImage, $html, $randomId, $html, $thumbImage, $randomId, $thumbImage ); return $d . $text; } } return $d; } }