{"id":55,"date":"2022-06-20T11:46:24","date_gmt":"2022-06-20T09:46:24","guid":{"rendered":"https:\/\/odootips.digitalorigin.fr\/?p=55"},"modified":"2022-06-20T11:46:24","modified_gmt":"2022-06-20T09:46:24","slug":"how-to-hide-the-edit-and-create-buttons-conditionally","status":"publish","type":"post","link":"https:\/\/odootips.digitalorigin.fr\/?p=55","title":{"rendered":"How to hide the edit and create buttons conditionally?"},"content":{"rendered":"\n<p>&lt;record model=\u00a0\u00bbir.rule\u00a0\u00bb id=\u00a0\u00bbreference_id\u00a0\u00bb&gt;<\/p>\n\n\n\n<p>&lt;field name=\u00a0\u00bbname\u00a0\u00bb&gt;reference name&lt;\/field&gt;<\/p>\n\n\n\n<p>&lt;field name=\u00a0\u00bbmodel_id\u00a0\u00bb ref=\u00a0\u00bbmodel_model_name\u00a0\u00bb\/&gt;<\/p>\n\n\n\n<p>&lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_unlink\u00a0\u00bb\/&gt;<\/p>\n\n\n\n<p>&lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_write\u00a0\u00bb\/&gt;<\/p>\n\n\n\n<p>&lt;field eval=\u00a0\u00bb1&Prime; name=\u00a0\u00bbperm_read\u00a0\u00bb\/&gt;<\/p>\n\n\n\n<p>&lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_create\u00a0\u00bb\/&gt;<\/p>\n\n\n\n<p>&lt;field name=\u00a0\u00bb<strong>domain_force<\/strong>\u00ab\u00a0&gt;<strong>[ (&lsquo;state&rsquo;,&rsquo;in&rsquo;,[&lsquo;open&rsquo;,&rsquo;paid&rsquo;])]<\/strong>&lt;\/field&gt;<\/p>\n\n\n\n<p>&lt;\/record><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;record model=\u00a0\u00bbir.rule\u00a0\u00bb id=\u00a0\u00bbreference_id\u00a0\u00bb&gt; &lt;field name=\u00a0\u00bbname\u00a0\u00bb&gt;reference name&lt;\/field&gt; &lt;field name=\u00a0\u00bbmodel_id\u00a0\u00bb ref=\u00a0\u00bbmodel_model_name\u00a0\u00bb\/&gt; &lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_unlink\u00a0\u00bb\/&gt; &lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_write\u00a0\u00bb\/&gt; &lt;field eval=\u00a0\u00bb1&Prime; name=\u00a0\u00bbperm_read\u00a0\u00bb\/&gt; &lt;field eval=\u00a0\u00bb0&Prime; name=\u00a0\u00bbperm_create\u00a0\u00bb\/&gt; &lt;field name=\u00a0\u00bbdomain_force\u00ab\u00a0&gt;[ (&lsquo;state&rsquo;,&rsquo;in&rsquo;,[&lsquo;open&rsquo;,&rsquo;paid&rsquo;])]&lt;\/field&gt; &lt;\/record><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55"}],"version-history":[{"count":1,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/odootips.digitalorigin.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}