{"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\/fr\/docs\/protecting-widgets\/","title":{"rendered":"Prot\u00e9ger les widgets"},"content":{"rendered":"<p>Si vous souhaitez afficher\/masquer certains widgets en fonction de ce que le membre connect\u00e9 a achet\u00e9, suivez les \u00e9tapes ci-dessous.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 1<\/h2>\n\n\n\n<p>T\u00e9l\u00e9chargez et installez le <a href=\"https:\/\/wordpress.org\/plugins\/widget-options\/\" target=\"_blank\" rel=\"noopener\" title=\"T\u00e9l\u00e9charger Widget Logic\">Options des widgets<\/a> plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 2<\/h2>\n\n\n\n<p>Les options de widget ajoutent quelques options de restriction au bas de chaque widget, comme ceci :<\/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\">\u00c9tape 3<\/h2>\n\n\n\n<p>Cr\u00e9ez une r\u00e8gle pour le widget et d\u00e9finissez le type de r\u00e8gle sur \u201cPartiel\u201d - puis cliquez sur le lien \u201cCodes de contenu partiel\u201d pour afficher l'extrait de code PHP que vous devrez utiliser pour les options du widget. Widget Options ne veut que la partie incluant current_user_can(). Ainsi, pour la capture d'\u00e9cran ci-dessous, vous devez copier UNIQUEMENT la partie suivante :<\/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>Remarque :<\/strong> si vous ne voulez pas cr\u00e9er de r\u00e8gle, vous pouvez utiliser <strong>current_user_can(\u2018mepr-active','membership:123\u2032)<\/strong> \u00e0 l'\u00e9tape 4, o\u00f9 123 est l'identifiant unique de l'adh\u00e9rent. Si vous souhaitez en savoir plus sur la mani\u00e8re de proc\u00e9der, cliquez sur <a href=\"http:\/\/docs.memberpress.com\/article\/154-advanced-rule-features\" target=\"_blank\" rel=\"noreferrer noopener\">ici<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 4<\/h2>\n\n\n\n<p>Recherchez le(s) widget(s) que vous souhaitez cacher aux membres non autoris\u00e9s et cliquez sur la petite roue dent\u00e9e dans la liste des param\u00e8tres pour les options de widget. Cliquez sur le bouton<br><strong>Logique <\/strong>et collez le code copi\u00e9 \u00e0 l'\u00e9tape 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;\">Remarque :<\/strong> Chaque r\u00e8gle a son propre identifiant (1165 dans l'exemple ci-dessus). Veillez donc \u00e0 ce que l'identifiant soit correct lorsque vous collez le code de contenu partiel dans les param\u00e8tres des options de widget de vos widgets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00c9tape 5<\/h2>\n\n\n\n<p>Sauvegardez le widget. Il sera d\u00e9sormais cach\u00e9 aux membres qui n'y ont pas acc\u00e8s.<\/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\/fr\/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=\"fr_FR\" \/>\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\/fr\/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\\\/fr\\\/docs\\\/protecting-widgets\\\/#article\",\"name\":\"Protecting Widgets | MemberPress\",\"headline\":\"Protecting Widgets\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-uje5YajsS1.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#webpage\"},\"articleSection\":\"Protecting Content\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"position\":3,\"name\":\"Protecting Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#listItem\",\"name\":\"Protecting Widgets\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#listItem\",\"position\":4,\"name\":\"Protecting Widgets\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/protecting-content\\\/#listItem\",\"name\":\"Protecting Content\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/protecting-widgets\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#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":"Prot\u00e9ger les widgets | MemberPress","description":"Si vous souhaitez afficher\/masquer certains widgets en fonction de ce que le membre connect\u00e9 a achet\u00e9, suivez les \u00e9tapes ci-dessous. \u00c9tape 1 T\u00e9l\u00e9chargez et installez le plugin Widget Options. \u00c9tape 2 Widget Options ajoute des options de restriction au bas de chaque widget, comme ceci : \u00c9tape 3 D\u00e9finir une r\u00e8gle pour le widget","canonical_url":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#article","name":"Protecting Widgets | MemberPress","headline":"Protecting Widgets","author":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-uje5YajsS1.png","@id":"https:\/\/memberpress.com\/fr\/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":"fr-FR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#webpage"},"articleSection":"Protecting Content"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","position":2,"name":"General","item":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","position":3,"name":"Protecting Content","item":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#listItem","name":"Protecting Widgets"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#listItem","position":4,"name":"Protecting Widgets","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/#listItem","name":"Protecting Content"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/fr\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/fr\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#webpage","url":"https:\/\/memberpress.com\/fr\/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":"fr-FR","isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/#website","url":"https:\/\/memberpress.com\/fr\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"}}]},"og:locale":"fr_FR","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\/fr\/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\/fr\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\/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\/fr\/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\/fr"},{"label":"General","link":"https:\/\/memberpress.com\/fr\/doc-categories\/general\/"},{"label":"Protecting Content","link":"https:\/\/memberpress.com\/fr\/doc-categories\/protecting-content\/"},{"label":"Protecting Widgets","link":"https:\/\/memberpress.com\/fr\/docs\/protecting-widgets\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/61381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/comments?post=61381"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/61381\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/media?parent=61381"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=61381"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=61381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}