{"id":8204581,"date":"2016-09-21T02:21:03","date_gmt":"2016-09-21T02:21:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/codes-for-embed\/"},"modified":"2016-09-21T02:21:32","modified_gmt":"2016-09-21T02:21:32","slug":"codes-for-embed","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/codes-for-embed\/","title":{"rendered":"Codes for embed"},"content":{"rendered":"<pre><code>\/\/ if you embed titan framework in multiple plugins, you will get an error.\n\/\/ the following codes will check if the &quot;Titan Framework&quot; already activated. If not, then use embed codes  \n\n\/\/ activate titan framework for options\nif ( is_plugin_active(&#039;titan-framework\/titan-framework.php&#039;) ) {\n    require_once &#039;lib\/titan-framework-checker.php&#039;;\n} elseif ( !class_exists(&#039;TitanFrameworkPlugin&#039;) ) {\n    require_once &#039;lib\/titan-framework\/titan-framework.php&#039;;\n    \/\/ require_once &#039;lib\/titan-framework\/titan-framework-embedder.php&#039;; - NOT WORKING\n}<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-8204581","topic","type-topic","status-publish","hentry","topic-tag-embed"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8204581","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8204581\/revisions"}],"predecessor-version":[{"id":8204585,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8204581\/revisions\/8204585"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8204581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}