{"id":262,"date":"2019-10-24T15:51:37","date_gmt":"2019-10-24T15:51:37","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/plugin-jeedom-en-version-stable-ou-en-version-beta"},"modified":"2024-04-21T13:18:13","modified_gmt":"2024-04-21T11:18:13","slug":"plugin-jeedom-en-version-stable-ou-en-version-beta","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/plugin-jeedom-en-version-stable-ou-en-version-beta","title":{"rendered":"Jeedom plug-in in Stable version or Beta version"},"content":{"rendered":"<p>It is sometimes useful to know if the plugin is in Stable version or Beta version.<\/p>\n<p>I make this difference to disable some features in the Stable version as long as they are not validated in Beta.<\/p>\n<p>Here is the code that gives the information:<\/p>\n<p><code>$update = update::byLogicalId('alexaapi');<\/code><br \/>\n<code> $return = utils::o2a($update);<\/code><br \/>\n<code> echo $return['configuration']['version'];<\/code><\/p>","protected":false},"excerpt":{"rendered":"<p>It is sometimes useful to know if the plugin is in Stable version or Beta version. I make this difference to disable certain features in Stable version as long as they are not validated in Beta. Here is the code that gives the information: $update = update::byLogicalId(\u2018alexaapi\u2019); $return = utils::o2a($update); echo $return[\u2018configuration\u2019][\u2018version\u2019];<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}