{"id":468,"date":"2025-03-20T17:27:00","date_gmt":"2025-03-20T17:27:00","guid":{"rendered":"http:\/\/documentation.wpgetpaid.com\/?post_type=gd_place&#038;p=468"},"modified":"2025-03-26T13:53:50","modified_gmt":"2025-03-26T13:53:50","slug":"how-to-display-the-checkout-form-for-logged-in-users-only","status":"publish","type":"gd_place","link":"https:\/\/wpgetpaid.com\/documentation\/article\/code-snippets\/how-to-display-the-checkout-form-for-logged-in-users-only\/","title":{"rendered":"How to Display the Checkout Form for Logged in Users Only?"},"content":{"rendered":"<p>You can hide the checkout form from everyone and display it only to logged in users with the help of the following CSS snippet:<\/p>\n<pre><code class=\"language-css\">body:not(.logged-in) form.getpaid-payment-form {\n\tdisplay: none; \n}<\/code><\/pre>\n<div>To add the above snippet, head to <strong>Themes &gt; Customizer &gt; Custom CSS <\/strong>section.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can hide the checkout form from everyone and display it only to logged in users with the help of the following CSS snippet: body:not(.logged-in) form.getpaid-payment-form { display: none; } To add the above snippet, head to Themes &gt; Customizer &gt; Custom CSS section.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[308,309],"article\/categories":[211,221],"class_list":["post-468","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-checkout-form","gd_place_tags-logged-in-users","gd_placecategory-tips-tricks-more","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":0,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/468\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=468"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}