{"id":5163394,"date":"2014-08-06T06:42:11","date_gmt":"2014-08-06T06:42:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/do-shortcode\/"},"modified":"2016-08-21T23:57:52","modified_gmt":"2016-08-21T23:57:52","slug":"do-shortcode","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/do-shortcode\/","title":{"rendered":"do shortcode"},"content":{"rendered":"<p>Hi Markus, thanks for Like2Get!<\/p>\n<p>I want to call it in some php code, can I call the function directly to reveal content, or use the do short code function like this&#8230;<\/p>\n<p><code>echo do_shortcode(&#039;[l2g twitter=&quot;true&quot;]&#039; . &#039;here is your content to hide until user likes the content&#039; . &#039;[\/l2g]&#039;);<\/code><\/p>\n<p>https:\/\/wordpress.org\/plugins\/wplike2get\/<\/p>\n","protected":false},"template":"","class_list":["post-5163394","topic","type-topic","status-closed","hentry","topic-tag-do_shortcode"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5163394","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\/5163394\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5163394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}