{"id":334,"date":"2021-03-29T10:31:19","date_gmt":"2021-03-29T13:31:19","guid":{"rendered":"https:\/\/untura.com\/?p=334"},"modified":"2021-03-29T10:32:09","modified_gmt":"2021-03-29T13:32:09","slug":"conditions-for-translatepress-in-oxygen","status":"publish","type":"post","link":"https:\/\/untura.com\/en\/wordpress\/oxygen\/conditions-for-translatepress-in-oxygen\/","title":{"rendered":"Conditions for Translatepress in Oxygen"},"content":{"rendered":"<p>To hide or show an Oxygen element based on the language (using Translatepress) you need to set a simple PHP Return Function. This tip is from the Facebook group: <a href=\"https:\/\/www.facebook.com\/groups\/wpdevdesign\/permalink\/3188494754586784\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">https:\/\/www.facebook.com\/groups\/wpdevdesign\/permalink\/3188494754586784\/<\/a><\/p>\n\n\n\n<p>And here is the function:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>conditions > dynamic data > php function return value > get_locale > \"de_DE\", \"en_GB\" , ...<\/p><cite><a href=\"https:\/\/www.facebook.com\/groups\/1713359105433697\/user\/1818814266\/?__cft__[0]=AZUvk0BDC-tdG7zmfPPxptzHxx-hUhGDwHfiwjEQidVs0NKVLIW0nzFqQZOnRbQKydpY3tyX349XNgB8LRMIxVzf1wnaK3ph_mpzt3fgZJklQGKx6VAd5CukzN6Bx8Cupkk&amp;__tn__=-UC%2CP-R\" target=\"_blank\" rel=\"noopener\"><strong>Manuel Mochkal<\/strong><\/a><\/cite><\/blockquote>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>To hide or show an Oxygen element based on the language (using Translatepress) you need to set a simple PHP Return Function. This tip is from the Facebook group: https:\/\/www.facebook.com\/groups\/wpdevdesign\/permalink\/3188494754586784\/ And here is the function: conditions > dynamic data > php function return value > get_locale > \"de_DE\", \"en_GB\" , ... Manuel Mochkal<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ct_builder_shortcodes":"","ct_template_type":"","ct_parent_template":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-oxygen"],"acf":[],"_links":{"self":[{"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":3,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":337,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/posts\/334\/revisions\/337"}],"wp:attachment":[{"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/untura.com\/en\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}