{"id":698,"date":"2026-02-10T17:02:09","date_gmt":"2026-02-10T17:02:09","guid":{"rendered":"https:\/\/wpgetpaid.com\/documentation\/?post_type=gd_place&#038;p=698"},"modified":"2026-02-10T17:04:47","modified_gmt":"2026-02-10T17:04:47","slug":"getpaid-restrict-paid-content-setup-guide","status":"publish","type":"gd_place","link":"https:\/\/wpgetpaid.com\/documentation\/article\/restrict-paid-content\/getpaid-restrict-paid-content-setup-guide\/","title":{"rendered":"GetPaid Restrict Paid Content Setup Guide"},"content":{"rendered":"\n<p>This is the Setup Guide for the Restrict Paid Content extension for GetPaid.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">You will need to have the main GetPaid plugin installed and active first.<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-blockstrap-blockstrap-widget-heading mb-3\">Overview<\/h2>\n\n\n\n<p>Restrict Paid Content does not add any main GetPaid settings. Instead, it provides a block and a shortcode to restrict content. Once installed and active, you will see a new block &#8220;<strong>GP &gt; Restrict Paid Content<\/strong>&#8220;.<\/p>\n\n\n<figure class=\" overflow-hidden mb-3 col-12 col-lg-5 \" style=\" \"><img width=\"265\" height=\"565\" src=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restric-paid-content-block.png\" class=\"mw-100 w-100 border border-muted shadow embed-item-cover-xy \" alt=\"GetPaid Restrict Paid Content Block\" loading=\"eager\" fetchpriority=\"high\" decoding=\"async\" importance=\"high\" srcset=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restric-paid-content-block.png 265w, https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restric-paid-content-block-141x300.png 141w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-blockstrap-blockstrap-widget-heading mb-3\">How it Works?<\/h2>\n\n\n\n<p>The block is a container block, meaning you can add other blocks as child blocks.  To restrict content, simply add the content as child blocks.<\/p>\n\n\n<figure class=\" overflow-hidden mb-3 col-12 col-lg-6 \" style=\" \"><img loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"130\" src=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restrict-paid-content-parent-block.png\" class=\"mw-100 w-100 border border-muted embed-item-cover-xy \" alt=\"GetPaid Restrict Paid content block parent\" srcset=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restrict-paid-content-parent-block.png 343w, https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restrict-paid-content-parent-block-300x114.png 300w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/figure>\n\n\n<p>Any content inside can be restricted. In the editor, you will see a basic preview. This preview shows logged-out messages and logged-in messages, which are editable in the settings.<\/p>\n\n\n<figure class=\" overflow-hidden mb-3 \" style=\" \"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"400\" src=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restricted-content.png\" class=\"mw-100 w-100 border border-muted embed-item-cover-xy \" alt=\"GetPaid Block Preview\" srcset=\"https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restricted-content.png 867w, https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restricted-content-300x138.png 300w, https:\/\/wpgetpaid.com\/documentation\/wp-content\/uploads\/2026\/02\/gp-restricted-content-768x354.png 768w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-blockstrap-blockstrap-widget-heading mb-3\">Shortcode<\/h2>\n\n\n\n<p>To use this as a shortcode you can follow the below example:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">[getpaid_restrict_paid_content restriction_type=&#039;bought_item&#039;  item_ids=&#039;13&#039;  match_type=&#039;any&#039;  logged_out_message=&#039;Login to view&#039;  show_login_button=&#039;true&#039;  login_button_text=&#039;Log In&#039;  show_register_button=&#039;true&#039;  register_button_text=&#039;Register&#039;  logged_out_show_excerpt=&#039;true&#039;  logged_out_excerpt_length=&#039;200&#039;  logged_out_excerpt_position=&#039;before&#039;  restricted_message=&#039;This content requires purchase&#039;  show_buy_button=&#039;true&#039;  buy_button_text=&#039;Purchase Now&#039;  restricted_show_excerpt=&#039;true&#039;  restricted_excerpt_length=&#039;200&#039;  restricted_excerpt_position=&#039;before&#039;  ]\nThis content is restricted.\n[\/getpaid_restrict_paid_content]<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the Setup Guide for the Restrict Paid Content extension for GetPaid.&nbsp; Restrict Paid Content does not add any main GetPaid settings. Instead, it provides a block and a shortcode to restrict content. Once installed and active, you will see a new block &#8220;GP &gt; Restrict Paid Content&#8220;. The block is a container block, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[386,213],"class_list":["post-698","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-restrict-paid-content","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/698","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=698"}],"version-history":[{"count":0,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/698\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=698"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}