{"id":10069912,"date":"2018-03-13T15:22:55","date_gmt":"2018-03-13T15:22:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-api-function\/"},"modified":"2018-03-13T15:22:55","modified_gmt":"2018-03-13T15:22:55","slug":"php-api-function","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-api-function\/","title":{"rendered":"PHP api Function"},"content":{"rendered":"<p>Hello!<\/p>\n<p>I need to make the condition different for desktop and mobile.<\/p>\n<p>I used in my Header the condition PHP function: bool wonderplugin_is_device (string $ device_list) and bool wonderplugin_is_browser (string $ browser_list)<br \/>\nBut it did not work.<\/p>\n<p>I need the images to be different on a Mac and Iphone.<\/p>\n<p>How can I do this?<\/p>\n","protected":false},"template":"","class_list":["post-10069912","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10069912","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\/10069912\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10069912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}