{"id":306,"date":"2010-05-11T21:48:43","date_gmt":"2010-05-11T19:48:43","guid":{"rendered":"http:\/\/kavdesign.net\/wordpress\/?p=306"},"modified":"2010-05-11T21:48:43","modified_gmt":"2010-05-11T19:48:43","slug":"how-to-insert-youtube-video-in-the-virtuemart-product-description","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-insert-youtube-video-in-the-virtuemart-product-description\/","title":{"rendered":"How to insert YouTube video in the VirtueMart product description?"},"content":{"rendered":"<p>There is a filter in VirtueMart, which cuts the <strong>object<\/strong> and the <strong>embed<\/strong> html tags.<\/p>\n<p>A modification should be completed in the <em>administrator\/components\/com_virtuemart\/classes\/phpInputFilter\/class.inputfilter.php<\/em> file.<\/p>\n<p>In order to embed YouTube video and other Flash files in your VirtueMart  product description area you should remove the <strong>object<\/strong> and the <strong>embed<\/strong> items from the following array:<\/p>\n<p><em>var $tagBlacklist = array(&#8216;applet&#8217;, &#8216;body&#8217;, &#8216;bgsound&#8217;, &#8216;base&#8217;,  &#8216;basefont&#8217;, &#8217;embed&#8217;, &#8216;frame&#8217;, &#8216;frameset&#8217;, &#8216;head&#8217;, &#8216;html&#8217;, &#8216;id&#8217;,  &#8216;iframe&#8217;, &#8216;ilayer&#8217;, &#8216;layer&#8217;, &#8216;link&#8217;, &#8216;meta&#8217;, &#8216;name&#8217;, &#8216;object&#8217;, &#8216;script&#8217;,  &#8216;style&#8217;, &#8216;title&#8217;, &#8216;xml&#8217;);<\/em><\/p>\n<p>The new array will be:<\/p>\n<p><em>var $tagBlacklist = array(&#8216;applet&#8217;, &#8216;body&#8217;, &#8216;bgsound&#8217;, &#8216;base&#8217;,  &#8216;basefont&#8217;, &#8216;frame&#8217;, &#8216;frameset&#8217;, &#8216;head&#8217;, &#8216;html&#8217;, &#8216;id&#8217;, &#8216;iframe&#8217;,  &#8216;ilayer&#8217;, &#8216;layer&#8217;, &#8216;link&#8217;, &#8216;meta&#8217;, &#8216;name&#8217;, &#8216;script&#8217;, &#8216;style&#8217;, &#8216;title&#8217;,  &#8216;xml&#8217;);<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a filter in VirtueMart, which cuts the object and the embed html tags. A modification should be completed in the administrator\/components\/com_virtuemart\/classes\/phpInputFilter\/class.inputfilter.php file. In&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-insert-youtube-video-in-the-virtuemart-product-description\/\">Continue reading<span class=\"screen-reader-text\">How to insert YouTube video in the VirtueMart product description?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,29],"tags":[33,65],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-coding","category-joomla","tag-virtuemart","tag-youtube","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":1,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions\/307"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}