{"id":11539023,"date":"2019-05-16T14:07:58","date_gmt":"2019-05-16T14:07:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/usage-30\/"},"modified":"2019-05-16T14:07:58","modified_gmt":"2019-05-16T14:07:58","slug":"usage-30","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/usage-30\/","title":{"rendered":"Usage"},"content":{"rendered":"<p>Just a quick question on how to use this awesome plugin.<\/p>\n<p>Are all the methods from the Mobile Detect PHP library available:<br \/>\n$detect-&gt;isMobile();<br \/>\n$detect-&gt;isTablet();<br \/>\n$detect-&gt;isIphone();<br \/>\n$detect-&gt;isSamsung();<\/p>\n<p>How do you include in a template file. obviously this won&#8217;t work:<br \/>\nrequire_once &#8216;Mobile_Detect.php&#8217;;<br \/>\n$detect = new Mobile_Detect;<\/p>\n","protected":false},"template":"","class_list":["post-11539023","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11539023","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\/11539023\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11539023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}