{"id":61381,"date":"2024-02-13T07:22:56","date_gmt":"2024-02-13T12:22:56","guid":{"rendered":"https:\/\/memberpress.com\/docs\/protecting-widgets\/"},"modified":"2024-02-28T10:28:14","modified_gmt":"2024-02-28T15:28:14","slug":"protecting-widgets","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/","title":{"rendered":"Prote\u00e7\u00e3o de widgets"},"content":{"rendered":"<p>Se voc\u00ea quiser mostrar\/ocultar determinados widgets dependendo do que o membro conectado no momento comprou, siga as etapas abaixo.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Etapa 1<\/h2>\n\n\n\n<p>Fa\u00e7a o download e instale o <a href=\"https:\/\/wordpress.org\/plugins\/widget-options\/\" target=\"_blank\" rel=\"noopener\" title=\"Baixar o Widget Logic\">Op\u00e7\u00f5es de widgets<\/a> plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Etapa 2<\/h2>\n\n\n\n<p>O Widget Options adiciona algumas op\u00e7\u00f5es de restri\u00e7\u00e3o \u00e0 parte inferior de cada widget, como esta:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-uje5YajsS1.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Etapa 3<\/h2>\n\n\n\n<p>Set up a Rule for the widget and set the Rule type to \u201cPartial\u201d \u2013 then click on the \u201cPartial Content Codes\u201d link to display the PHP snippet you'll need to use for Widget Options. Widget Options only wants the part including current_user_can(). So for the screenshot below, you would copy ONLY the following part:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>current_user_can('mepr-active','rules:1165')<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-XV77o7O3vr.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Observa\u00e7\u00e3o:<\/strong> Se n\u00e3o quiser criar uma regra, voc\u00ea pode usar <strong>current_user_can(\u2018mepr-active','membership:123\u2032)<\/strong> na etapa 4, em que 123 \u00e9 o ID exclusivo da associa\u00e7\u00e3o. Se voc\u00ea quiser saber mais sobre como fazer isso, clique em <a href=\"http:\/\/docs.memberpress.com\/article\/154-advanced-rule-features\" target=\"_blank\" rel=\"noreferrer noopener\">aqui<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Etapa 4<\/h2>\n\n\n\n<p>Localize o(s) widget(s) que voc\u00ea deseja ocultar de membros n\u00e3o autorizados e clique na pequena roda dentada na lista de configura\u00e7\u00f5es de Widget Options. Clique no bot\u00e3o<br><strong>L\u00f3gica <\/strong>e cole o c\u00f3digo copiado da Etapa 3:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-amBzviUzCW.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong style=\"background-color: initial;\">Observa\u00e7\u00e3o:<\/strong> Cada Rule tem seu ID exclusivo (1165 no exemplo acima), portanto, certifique-se de que o ID esteja correto ao colar o c\u00f3digo de conte\u00fado parcial nas configura\u00e7\u00f5es de Widget Options em seus widgets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Etapa 5<\/h2>\n\n\n\n<p>Salve o widget. Agora ele ficar\u00e1 oculto para os membros que n\u00e3o t\u00eam acesso.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget [\u2026]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1322],"ht-kb-tag":[],"class_list":{"0":"post-61381","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-protecting-content","7":"entry","8":"has-post-thumbnail"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_BR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Protecting Widgets | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T12:22:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-02-28T15:28:14+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Protecting Widgets | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#article\",\"name\":\"Protecting Widgets | MemberPress\",\"headline\":\"Protecting Widgets\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-uje5YajsS1.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#articleImage\",\"width\":422,\"height\":563},\"datePublished\":\"2024-02-13T07:22:56-05:00\",\"dateModified\":\"2024-02-28T10:28:14-05:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#webpage\"},\"articleSection\":\"Protecting Content\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"position\":3,\"name\":\"Protecting Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#listItem\",\"name\":\"Protecting Widgets\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#listItem\",\"position\":4,\"name\":\"Protecting Widgets\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/\",\"name\":\"Protecting Widgets | MemberPress\",\"description\":\"If you want to show\\\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/protecting-widgets\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T07:22:56-05:00\",\"dateModified\":\"2024-02-28T10:28:14-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Protecting Widgets | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Prote\u00e7\u00e3o de widgets | MemberPress","description":"Se voc\u00ea quiser mostrar\/ocultar determinados widgets dependendo do que o membro conectado no momento comprou, siga as etapas abaixo. Etapa 1 Fa\u00e7a o download e instale o plug-in Widget Options. Etapa 2 O Widget Options adiciona algumas op\u00e7\u00f5es de restri\u00e7\u00e3o \u00e0 parte inferior de cada widget, como esta: Etapa 3 Configure uma regra para o widget","canonical_url":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#article","name":"Protecting Widgets | MemberPress","headline":"Protecting Widgets","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-uje5YajsS1.png","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#articleImage","width":422,"height":563},"datePublished":"2024-02-13T07:22:56-05:00","dateModified":"2024-02-28T10:28:14-05:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#webpage"},"articleSection":"Protecting Content"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","position":2,"name":"General","item":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","position":3,"name":"Protecting Content","item":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#listItem","name":"Protecting Widgets"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#listItem","position":4,"name":"Protecting Widgets","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#webpage","url":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/","name":"Protecting Widgets | MemberPress","description":"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T07:22:56-05:00","dateModified":"2024-02-28T10:28:14-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/pt\/#website","url":"https:\/\/memberpress.com\/pt\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"}}]},"og:locale":"pt_BR","og:site_name":"MemberPress","og:type":"article","og:title":"Protecting Widgets | MemberPress","og:description":"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget","og:url":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T12:22:56+00:00","article:modified_time":"2024-02-28T15:28:14+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Protecting Widgets | MemberPress","twitter:description":"If you want to show\/hide certain widgets depending on what the currently logged-in member has purchased, then follow the steps below. Step 1 Download and install the Widget Options plugin. Step 2 Widget Options adds some restriction options to the bottom of every widget like this: Step 3 Set up a Rule for the widget","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"61381","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2025-10-09 21:34:02","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2024-02-13 12:22:57","updated":"2026-03-03 14:53:49"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/general\/\" title=\"General\">General<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/\" title=\"Protecting Content\">Protecting Content<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tProtecting Widgets\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt"},{"label":"General","link":"https:\/\/memberpress.com\/pt\/doc-categories\/general\/"},{"label":"Protecting Content","link":"https:\/\/memberpress.com\/pt\/doc-categories\/protecting-content\/"},{"label":"Protecting Widgets","link":"https:\/\/memberpress.com\/pt\/docs\/protecting-widgets\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=61381"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61381\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=61381"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-category?post=61381"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-tag?post=61381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}