{"id":25247,"date":"2021-03-01T07:00:00","date_gmt":"2021-03-01T14:00:00","guid":{"rendered":"https:\/\/memberpress.com\/?p=25247"},"modified":"2022-11-16T15:15:58","modified_gmt":"2022-11-16T22:15:58","slug":"roles-based-content-protection-memberpress","status":"publish","type":"post","link":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/","title":{"rendered":"Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e capacidades com o MemberPress"},"content":{"rendered":"<p>Um site de associa\u00e7\u00e3o oferece a voc\u00ea a capacidade de permitir o acesso ao conte\u00fado com base no n\u00edvel de associa\u00e7\u00e3o. Por exemplo, uma associa\u00e7\u00e3o de n\u00edvel bronze pode fornecer acesso a um artigo detalhado, enquanto uma associa\u00e7\u00e3o ouro inclui tamb\u00e9m uma s\u00e9rie de v\u00eddeos sobre o t\u00f3pico. <\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69d1127641fc1\" class=\"ez-toc-cssicon-toggle-label\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">O QUE H\u00c1 DENTRO<\/p>\n<span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Alternar<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d1127641fc1\"  \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#An_Introduction_to_WordPress_Roles_and_Capabilities\" >Uma introdu\u00e7\u00e3o \u00e0s fun\u00e7\u00f5es e aos recursos do WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#How_to_Protect_Content_Based_on_Roles_and_Capabilities_with_MemberPress_2_Methods\" >Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos com o MemberPress (2 m\u00e9todos)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#Method_1_Protect_Content_Based_on_a_Role\" >M\u00e9todo 1 Proteger o conte\u00fado com base em uma fun\u00e7\u00e3o<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#Method_2_Restrict_Content_Based_on_a_Capability\" >M\u00e9todo 2 Restringir conte\u00fado com base em um recurso<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#Conclusion\" >Conclus\u00e3o<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>Mas, e se voc\u00ea quiser proteger o conte\u00fado com base em outros crit\u00e9rios?<\/p>\n\n\n\n<p>Isso pode ser especialmente \u00fatil se voc\u00ea estiver usando integra\u00e7\u00f5es de terceiros com seu site. Agradecimentos a <a href=\"https:\/\/memberpress.com\/pt\/\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> fun\u00e7\u00f5es e regras de recursos, voc\u00ea tem mais controle sobre o seu conte\u00fado. Voc\u00ea pode restringir o acesso a qualquer parte com base nos par\u00e2metros escolhidos com apenas alguns cliques.<\/p>\n\n\n\n<p>Neste artigo, mostraremos a voc\u00ea como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos com o MemberPress. Tamb\u00e9m explicaremos o que s\u00e3o fun\u00e7\u00f5es e recursos e abordaremos alguns motivos pelos quais voc\u00ea pode querer usar esse recurso. Vamos ao que interessa!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"An_Introduction_to_WordPress_Roles_and_Capabilities\"><\/span>Uma introdu\u00e7\u00e3o \u00e0s fun\u00e7\u00f5es e aos recursos do WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities.jpg\"><img decoding=\"async\" width=\"1024\" height=\"447\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1024x447.jpg\" alt=\"Fun\u00e7\u00f5es e recursos do WordPress\" class=\"wp-image-25944\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1024x447.jpg 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-300x131.jpg 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-768x335.jpg 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1536x670.jpg 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities.jpg 1583w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Fun\u00e7\u00f5es e recursos do WordPress, conforme visualizados usando o aplicativo gratuito <a href=\"https:\/\/wordpress.org\/plugins\/user-roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Plugin User Roles &amp; Capabilities (Fun\u00e7\u00f5es e recursos do usu\u00e1rio)<\/a><\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/developer.wordpress.org\/plugins\/users\/roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fun\u00e7\u00f5es e recursos<\/a> s\u00e3o incorporadas ao WordPress e permitem que voc\u00ea controle os privil\u00e9gios dos usu\u00e1rios. Se voc\u00ea j\u00e1 usou o WordPress por algum tempo, provavelmente conhece as fun\u00e7\u00f5es padr\u00e3o. Elas incluem: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Administrador:<\/strong> Tem permiss\u00f5es ilimitadas, incluindo a instala\u00e7\u00e3o e a ativa\u00e7\u00e3o de plug-ins e temas.<\/li><li><strong>Editor:<\/strong> Pode fazer altera\u00e7\u00f5es em suas pr\u00f3prias publica\u00e7\u00f5es e nas de outros usu\u00e1rios.<\/li><li><strong>Autor:<\/strong> \u00c9 capaz de escrever e publicar suas pr\u00f3prias postagens.<\/li><li><strong>Colaborador:<\/strong> Podem escrever (mas n\u00e3o publicar) suas pr\u00f3prias postagens.<\/li><li><strong>Assinante:<\/strong> S\u00f3 tem permiss\u00e3o para ler postagens.<\/li><\/ul>\n\n\n\n<p>As fun\u00e7\u00f5es funcionam como uma hierarquia. Um Subscriber tem o menor n\u00famero de privil\u00e9gios e o acesso mais limitado. Cada n\u00edvel sucessivo tem os recursos da fun\u00e7\u00e3o abaixo dele, al\u00e9m de privil\u00e9gios e acesso adicionais. Um administrador do WordPress tem privil\u00e9gios e acesso totais. <\/p>\n\n\n\n<p>Voc\u00ea pode usar essas fun\u00e7\u00f5es do WordPress para controlar o acesso ao conte\u00fado do seu site de associa\u00e7\u00e3o MemberPress:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles.png\"><img decoding=\"async\" width=\"1024\" height=\"228\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1024x228.png\" alt=\"Defini\u00e7\u00e3o de fun\u00e7\u00f5es e recursos no Wordpress\" class=\"wp-image-25255\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1024x228.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-300x67.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-768x171.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1536x342.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-2048x455.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Um recurso do WordPress \u00e9 uma tarefa que um usu\u00e1rio pode executar. Os recursos est\u00e3o ocultos no WordPress e operam com base nas fun\u00e7\u00f5es \u00e0s quais est\u00e3o vinculados. Eles incluem opera\u00e7\u00f5es como editar uma postagem, adicionar uma p\u00e1gina ou excluir um usu\u00e1rio.<\/p>\n\n\n\n<p>Embora muitos propriet\u00e1rios de sites de associa\u00e7\u00e3o <a href=\"https:\/\/memberpress.com\/pt\/docs\/rules-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">proteger o conte\u00fado com base na associa\u00e7\u00e3o<\/a>No entanto, pode haver casos em que voc\u00ea queira proteg\u00ea-lo com base em fun\u00e7\u00f5es ou recursos do WordPress. Por exemplo:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Um plug-in de terceiros pode criar automaticamente fun\u00e7\u00f5es adicionais do WordPress para as quais voc\u00ea gostaria de conceder acesso espec\u00edfico. <\/li><li>Todos os usu\u00e1rios com capacidade de editar publica\u00e7\u00f5es podem precisar de acesso a uma p\u00e1gina com informa\u00e7\u00f5es confidenciais ou propriet\u00e1rias.<\/li><\/ul>\n\n\n\n<p>Com a fun\u00e7\u00e3o Regras do MemberPress, voc\u00ea pode proteger facilmente qualquer conte\u00fado do seu site usando os par\u00e2metros que fazem mais sentido para a situa\u00e7\u00e3o.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Protect_Content_Based_on_Roles_and_Capabilities_with_MemberPress_2_Methods\"><\/span>Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos com o MemberPress (2 m\u00e9todos)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Na maioria das circunst\u00e2ncias, voc\u00ea proteger\u00e1 o conte\u00fado do seu site com base na designa\u00e7\u00e3o de associa\u00e7\u00e3o. No entanto, se achar necess\u00e1rio proteger o conte\u00fado com base em fun\u00e7\u00f5es ou recursos, o MemberPress oferece a flexibilidade necess\u00e1ria para isso. Veja como.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Protect_Content_Based_on_a_Role\"><\/span>M\u00e9todo 1: Proteger o conte\u00fado com base em uma fun\u00e7\u00e3o<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Se ainda n\u00e3o tiver feito isso, crie o conte\u00fado que voc\u00ea deseja proteger.<\/p>\n\n\n\n<p>Em seguida, no painel do WordPress, v\u00e1 para <em>MemberPress<\/em> > <em>Regras &gt; Adicionar novo<\/em>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules.png\"><img decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-1024x569.png\" alt=\"Captura de tela do painel de administra\u00e7\u00e3o do MemberPress\" class=\"wp-image-25248\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-1024x569.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-300x167.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-768x427.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Abaixo de <em>Conte\u00fado protegido<\/em>selecione o post ou a p\u00e1gina que voc\u00ea deseja proteger. Na se\u00e7\u00e3o <em>Condi\u00e7\u00f5es de acesso<\/em> menu, selecione <em>Fun\u00e7\u00e3o<\/em>: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select.png\"><img decoding=\"async\" width=\"1024\" height=\"389\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-1024x389.png\" alt=\"Captura de tela do administrador do MemberPress - Op\u00e7\u00f5es de regras.\" class=\"wp-image-25249\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-1024x389.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-300x114.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-768x292.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Depois disso, um menu suspenso aparecer\u00e1 \u00e0 direita. Nele, selecione a fun\u00e7\u00e3o espec\u00edfica para a qual voc\u00ea deseja permitir o acesso:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles.png\"><img decoding=\"async\" width=\"1024\" height=\"388\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-1024x388.png\" alt=\"Captura de tela do administrador do MemberPress - op\u00e7\u00e3o Regras selecionada: Editor.\" class=\"wp-image-25250\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-1024x388.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-300x114.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-768x291.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Se voc\u00ea tiver plug-ins de terceiros que criam automaticamente fun\u00e7\u00f5es no WordPress, ver\u00e1 que eles est\u00e3o listados aqui, al\u00e9m das fun\u00e7\u00f5es padr\u00e3o do WordPress de Administrador, Editor, Autor, Colaborador e Assinante.<\/p>\n\n\n\n<p>Por exemplo, <a href=\"https:\/\/wordpress.org\/plugins\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a> adiciona as fun\u00e7\u00f5es de Cliente e Gerente de loja ao WordPress. Se voc\u00ea quisesse criar conte\u00fado e torn\u00e1-lo vis\u00edvel somente para aqueles que compraram produtos de voc\u00ea, poderia usar uma regra baseada em fun\u00e7\u00e3o para fazer isso.<\/p>\n\n\n\n<p>Voc\u00ea tamb\u00e9m pode adicionar regras adicionais a qualquer parte do conte\u00fado selecionando o bot\u00e3o <em>Mais<\/em> (+) sob o \u00edcone <em>Condi\u00e7\u00f5es de acesso<\/em>. Isso lhe d\u00e1 a capacidade de personalizar completamente suas permiss\u00f5es.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Restrict_Content_Based_on_a_Capability\"><\/span>M\u00e9todo 2: Restringir conte\u00fado com base em um recurso<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Crie o conte\u00fado que voc\u00ea deseja proteger e, em seguida, v\u00e1 para <em>MemberPress<\/em> > <em>Rules ><\/em> <em>Adicionar novo<\/em> conforme descrito acima. <\/p>\n\n\n\n<p>Abaixo de <em>Conte\u00fado protegido<\/em>selecione o conte\u00fado que voc\u00ea deseja proteger. Ir para <em>Condi\u00e7\u00f5es de acesso<\/em> e selecione <em>Recursos<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select.png\"><img decoding=\"async\" width=\"1024\" height=\"387\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-1024x387.png\" alt=\"Captura de tela do administrador do MemberPress - Op\u00e7\u00f5es de recursos.\" class=\"wp-image-25251\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-1024x387.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-300x113.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-768x290.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>No campo que aparece \u00e0 direita, digite a fun\u00e7\u00e3o para o recurso ao qual voc\u00ea deseja conceder acesso. Qualquer usu\u00e1rio com esse recurso ter\u00e1 permiss\u00e3o para acessar o conte\u00fado:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities.png\"><img decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-1024x552.png\" alt=\"Captura de tela do administrador do MemberPress - Op\u00e7\u00e3o de recursos inserida: edit_posts.\" class=\"wp-image-25252\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-1024x552.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-300x162.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-768x414.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Voc\u00ea pode encontrar uma lista de fun\u00e7\u00f5es de capacidade padr\u00e3o na se\u00e7\u00e3o <a href=\"https:\/\/wordpress.org\/support\/article\/roles-and-capabilities\/#capabilities\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00f3digo do WordPress<\/a>. Para criar uma regra com base em recursos, voc\u00ea deve digitar o nome do recurso no mesmo formato em que ele est\u00e1 listado no WordPress Codex:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities.png\"><img decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1024x495.png\" alt=\"captura de tela do wordpress codex\" class=\"wp-image-25253\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1024x495.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-300x145.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-768x371.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1536x742.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities.png 1580w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Voc\u00ea pode adicionar regras adicionais a qualquer parte do conte\u00fado selecionando a op\u00e7\u00e3o <em>Mais<\/em> (+) sob o \u00edcone <em>Condi\u00e7\u00f5es de acesso<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclus\u00e3o<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Em geral, voc\u00ea proteger\u00e1 o conte\u00fado do seu site de associa\u00e7\u00e3o com base nos n\u00edveis de associa\u00e7\u00e3o. No entanto, pode haver casos em que seja \u00fatil proteger o conte\u00fado com base em uma fun\u00e7\u00e3o ou recurso do WordPress. <\/p>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/pt\/\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> oferece a flexibilidade e a liberdade de criar essas regras e controlar o conte\u00fado da maneira que fizer mais sentido para o seu site.<\/p>\n\n\n\n<p>Neste artigo, discutimos o recurso de regras Roles and Capabilities do MemberPress. Compartilhamos alguns motivos pelos quais voc\u00ea pode querer usar essas op\u00e7\u00f5es e mostramos como adicionar essas regras em algumas etapas simples.<\/p>\n\n\n\n<p>Voc\u00ea tem alguma d\u00favida sobre como proteger seu conte\u00fado com base em fun\u00e7\u00f5es ou recursos? Fale conosco na se\u00e7\u00e3o de coment\u00e1rios abaixo!<\/p>\n\n\n\n<p><strong>Se voc\u00ea gostou deste artigo, n\u00e3o deixe de nos seguir em <a href=\"https:\/\/www.facebook.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Facebook<\/a>, <a href=\"https:\/\/twitter.com\/memberpress\" rel=\"noreferrer noopener\" target=\"_blank\">Twitter<\/a>, <a href=\"https:\/\/www.instagram.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Instagram<\/a>e <a href=\"https:\/\/www.linkedin.com\/showcase\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">LinkedIn<\/a>!<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>A membership site offers you the ability to allow access to content based on membership level. For instance, a bronze level membership may provide access to an in-depth article, while a gold membership includes a video series on the topic as well. But, what if you want to protect content based on other criteria? This [\u2026]<\/p>\n","protected":false},"author":76756,"featured_media":25454,"comment_status":"open","ping_status":"closed","sticky":false,"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","_strive_post_notes":"","footnotes":""},"categories":[120,134],"tags":[812,609],"class_list":{"0":"post-25247","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-content","8":"category-how-to-2","9":"tag-content-protection","10":"tag-roles-and-capabilities","11":"entry"},"acf":{"plans":["scale"],"is_featured":false,"download_source":"none","mothership_slug":"","download_url":""},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we&#039;ll show you how to set it up!\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Zeph Bluestone\"\/>\n\t<meta name=\"keywords\" content=\"content protection,roles and capabilities\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/\" \/>\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=\"How to Protect Content Based on Roles and Capabilities with MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we&#039;ll show you how to set it up!\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t\t<meta property=\"og:image:height\" content=\"873\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-03-01T14:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-11-16T22:15:58+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=\"How to Protect Content Based on Roles and Capabilities with MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we&#039;ll show you how to set it up!\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#blogposting\",\"name\":\"How to Protect Content Based on Roles and Capabilities with MemberPress\",\"headline\":\"How to Protect Content Based on Roles and Capabilities with MemberPress\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/staff-writer\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/roles-and-capabilities-1.jpg\",\"width\":1024,\"height\":873,\"caption\":\"roles and capabilities\"},\"datePublished\":\"2021-03-01T07:00:00-05:00\",\"dateModified\":\"2022-11-16T15:15:58-05:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#webpage\"},\"articleSection\":\"Content, How To, content protection, roles and capabilities\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#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\\\/blog\\\/category\\\/membership-site\\\/#listItem\",\"name\":\"Membership Site\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/#listItem\",\"position\":2,\"name\":\"Membership Site\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/content\\\/#listItem\",\"name\":\"Content\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/content\\\/#listItem\",\"position\":3,\"name\":\"Content\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/content\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#listItem\",\"name\":\"How to Protect Content Based on Roles and Capabilities with MemberPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/#listItem\",\"name\":\"Membership Site\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#listItem\",\"position\":4,\"name\":\"How to Protect Content Based on Roles and Capabilities with MemberPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/membership-site\\\/content\\\/#listItem\",\"name\":\"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\\\/blog\\\/roles-based-content-protection-memberpress\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#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\\\/staff-writer\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/staff-writer\\\/\",\"name\":\"Zeph Bluestone\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/e1c9e7d7b492bb1e583580325b42f8d0.jpg?ver=1775142613\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/\",\"name\":\"How to Protect Content Based on Roles and Capabilities with MemberPress\",\"description\":\"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we'll show you how to set it up!\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/staff-writer\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/staff-writer\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/roles-and-capabilities-1.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#mainImage\",\"width\":1024,\"height\":873,\"caption\":\"roles and capabilities\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/roles-based-content-protection-memberpress\\\/#mainImage\"},\"datePublished\":\"2021-03-01T07:00:00-05:00\",\"dateModified\":\"2022-11-16T15:15:58-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>How to Protect Content Based on Roles and Capabilities with MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e capacidades com o MemberPress","description":"Saber como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos no WordPress lhe d\u00e1 flexibilidade. Neste artigo, mostraremos a voc\u00ea como configurar isso!","canonical_url":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/","robots":"max-image-preview:large","keywords":"content protection,roles and capabilities","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#blogposting","name":"How to Protect Content Based on Roles and Capabilities with MemberPress","headline":"How to Protect Content Based on Roles and Capabilities with MemberPress","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/staff-writer\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg","width":1024,"height":873,"caption":"roles and capabilities"},"datePublished":"2021-03-01T07:00:00-05:00","dateModified":"2022-11-16T15:15:58-05:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#webpage"},"articleSection":"Content, How To, content protection, roles and capabilities"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#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\/blog\/category\/membership-site\/#listItem","name":"Membership Site"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/#listItem","position":2,"name":"Membership Site","item":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/#listItem","name":"Content"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/#listItem","position":3,"name":"Content","item":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#listItem","name":"How to Protect Content Based on Roles and Capabilities with MemberPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/#listItem","name":"Membership Site"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#listItem","position":4,"name":"How to Protect Content Based on Roles and Capabilities with MemberPress","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/#listItem","name":"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\/blog\/roles-based-content-protection-memberpress\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#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\/staff-writer\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/staff-writer\/","name":"Zeph Bluestone","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/e1c9e7d7b492bb1e583580325b42f8d0.jpg?ver=1775142613"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#webpage","url":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/","name":"How to Protect Content Based on Roles and Capabilities with MemberPress","description":"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we'll show you how to set it up!","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/staff-writer\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/staff-writer\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg","@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#mainImage","width":1024,"height":873,"caption":"roles and capabilities"},"primaryImageOfPage":{"@id":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/#mainImage"},"datePublished":"2021-03-01T07:00:00-05:00","dateModified":"2022-11-16T15:15:58-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":"How to Protect Content Based on Roles and Capabilities with MemberPress","og:description":"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we'll show you how to set it up!","og:url":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg","og:image:width":1024,"og:image:height":873,"article:published_time":"2021-03-01T14:00:00+00:00","article:modified_time":"2022-11-16T22:15:58+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"How to Protect Content Based on Roles and Capabilities with MemberPress","twitter:description":"Knowing how to protect content based on roles and capabilities in WordPress gives you flexibility. In this article, we'll show you how to set it up!","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/roles-and-capabilities-1.jpg"},"aioseo_meta_data":{"post_id":"25247","title":"Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e capacidades com o MemberPress","description":"Saber como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos no WordPress lhe d\u00e1 flexibilidade. Neste artigo, mostraremos a voc\u00ea como configurar isso!","keywords":[],"keyphrases":{"focus":[],"additional":[]},"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":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"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":"","isEnabled":true},"graphs":[]},"schema_type":"none","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"},\"book\":[],\"event\":[],\"jobPosting\":[],\"music\":[],\"person\":[],\"restaurant\":[],\"service\":[],\"video\":[]}","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2025-10-09 18:46:02","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2021-01-07 01:52:10","updated":"2026-03-03 15:04:54"},"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\/blog\/category\/membership-site\/\" title=\"Membership Site\">Membership Site<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/\" title=\"Content\">Content<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Protect Content Based on Roles and Capabilities with MemberPress\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt"},{"label":"Membership Site","link":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/"},{"label":"Content","link":"https:\/\/memberpress.com\/pt\/blog\/category\/membership-site\/content\/"},{"label":"How to Protect Content Based on Roles and Capabilities with MemberPress","link":"https:\/\/memberpress.com\/pt\/blog\/roles-based-content-protection-memberpress\/"}],"app_bookmark":{"bookmark_id":0,"is_bookmarked":false,"bookmark_date":0},"comments_count":"0","content_native":[{"type":"core\/paragraph","render":"<p>A membership site offers you the ability to allow access to content based on membership level. For instance, a bronze level membership may provide access to an in-depth article, while a gold membership includes a video series on the topic as well. <\/p>","content":[{"type":"text","data":"A membership site offers you the ability to allow access to content based on membership level. For instance, a bronze level membership may provide access to an in-depth article, while a gold membership includes a video series on the topic as well. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>But, what if you want to protect content based on other criteria?<\/p>","content":[{"type":"text","data":"But, what if you want to protect content based on other criteria?"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>This may be especially helpful if you\u2019re using third-party integrations with your website. Thanks to <a href=\"https:\/\/memberpress.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> roles and capabilities rules, you have more control over your content. You can restrict access to any piece based on your chosen parameters with just a few clicks.<\/p>","content":[{"type":"text","data":"This may be especially helpful if you\u2019re using third-party integrations with your website. Thanks to <a href=\"https:\/\/memberpress.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> roles and capabilities rules, you have more control over your content. You can restrict access to any piece based on your chosen parameters with just a few clicks."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>In this article, we\u2019ll walk you through how to protect content based on roles and capabilities with MemberPress. We\u2019ll also explain what roles and capabilities are, and cover a few reasons why you may want to use this feature. Let\u2019s get to it!<\/p>","content":[{"type":"text","data":"In this article, we\u2019ll walk you through how to protect content based on roles and capabilities with MemberPress. We\u2019ll also explain what roles and capabilities are, and cover a few reasons why you may want to use this feature. Let\u2019s get to it!"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">An Introduction to WordPress Roles and Capabilities<\/h2>","content":"Uma introdu\u00e7\u00e3o \u00e0s fun\u00e7\u00f5es e aos recursos do WordPress","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities.jpg\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1024x447.jpg\" alt=\"WordPress roles and capabilities\" class=\"wp-image-25944\"\/><\/a><figcaption>WordPress roles and capabilities as viewed using the free <a href=\"https:\/\/wordpress.org\/plugins\/user-roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">User Roles &amp; Capabilities plugin<\/a><\/figcaption><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1024x447.jpg","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities.jpg","alt":"WordPress roles and capabilities","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/02\/wordpress-roles-capabilities-1024x447.jpg","caption":"WordPress roles and capabilities as viewed using the free <a href=\"https:\/\/wordpress.org\/plugins\/user-roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">User Roles &amp; Capabilities plugin<\/a>","targetBlank":true,"linkDestination":"media"},"style":{"width":1024,"height":447,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p><a href=\"https:\/\/developer.wordpress.org\/plugins\/users\/roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">Roles and capabilities<\/a> are built into WordPress and enable you to control users' privileges. If you\u2019ve used WordPress for any amount of time, you\u2019re probably familiar with its default roles. These include: <\/p>","content":[{"type":"text","data":"<a href=\"https:\/\/developer.wordpress.org\/plugins\/users\/roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">Roles and capabilities<\/a> are built into WordPress and enable you to control users' privileges. If you\u2019ve used WordPress for any amount of time, you\u2019re probably familiar with its default roles. These include: "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/list","render":"<ul class=\"wp-block-list\"><li><strong>Administrator:<\/strong> Has unlimited permissions, including installing and activating plugins and themes.<\/li><li><strong>Editor:<\/strong> Can make changes to their own posts, and those of other users.<\/li><li><strong>Author:<\/strong> Is able to write and publish their own posts.<\/li><li><strong>Contributor:<\/strong> Can write (but not publish) their own posts.<\/li><li><strong>Subscriber:<\/strong> Only has permission to read posts.<\/li><\/ul>","content":"<ul class=\"wp-block-list\"><li><strong>Administrador:<\/strong> Tem permiss\u00f5es ilimitadas, incluindo a instala\u00e7\u00e3o e a ativa\u00e7\u00e3o de plug-ins e temas.<\/li><li><strong>Editor:<\/strong> Pode fazer altera\u00e7\u00f5es em suas pr\u00f3prias publica\u00e7\u00f5es e nas de outros usu\u00e1rios.<\/li><li><strong>Autor:<\/strong> \u00c9 capaz de escrever e publicar suas pr\u00f3prias postagens.<\/li><li><strong>Colaborador:<\/strong> Podem escrever (mas n\u00e3o publicar) suas pr\u00f3prias postagens.<\/li><li><strong>Assinante:<\/strong> S\u00f3 tem permiss\u00e3o para ler postagens.<\/li><\/ul>","data":{"listType":"unordered"},"style":{"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Roles operate as a hierarchy. A Subscriber has the least amount of privileges and the most limited access. Each successive level has the capabilities of the role beneath it, plus additional privileges and access. A WordPress Administrator has full privileges and access. <\/p>","content":[{"type":"text","data":"Roles operate as a hierarchy. A Subscriber has the least amount of privileges and the most limited access. Each successive level has the capabilities of the role beneath it, plus additional privileges and access. A WordPress Administrator has full privileges and access. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>You can use these WordPress roles to control access to content on your MemberPress membership site:<\/p>","content":[{"type":"text","data":"You can use these WordPress roles to control access to content on your MemberPress membership site:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1024x228.png\" alt=\"setting roles and capabilities in wordpress\" class=\"wp-image-25255\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1024x228.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles.png","alt":"setting roles and capabilities in wordpress","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wp-user-roles-1024x228.png","linkDestination":"media"},"style":{"width":1024,"height":228,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>A WordPress capability is a task that a user can perform. Capabilities are hidden in WordPress and operate based on the roles they\u2019re attached to. They include operations such as edit a post, add a page, or delete a user.<\/p>","content":[{"type":"text","data":"A WordPress capability is a task that a user can perform. Capabilities are hidden in WordPress and operate based on the roles they\u2019re attached to. They include operations such as edit a post, add a page, or delete a user."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Although many membership site owners <a href=\"https:\/\/memberpress.com\/docs\/rules-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">protect content based on membership<\/a>, there may be instances where you want to protect it based on WordPress roles or capabilities instead. For example:<\/p>","content":[{"type":"text","data":"Although many membership site owners <a href=\"https:\/\/memberpress.com\/docs\/rules-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">protect content based on membership<\/a>, there may be instances where you want to protect it based on WordPress roles or capabilities instead. For example:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/list","render":"<ul class=\"wp-block-list\"><li>A third-party plugin may automatically create additional WordPress roles for which you\u2019d like to grant specific access. <\/li><li>All users with the capability to edit posts might need access to a page with confidential or proprietary information.<\/li><\/ul>","content":"<ul class=\"wp-block-list\"><li>Um plug-in de terceiros pode criar automaticamente fun\u00e7\u00f5es adicionais do WordPress para as quais voc\u00ea gostaria de conceder acesso espec\u00edfico. <\/li><li>Todos os usu\u00e1rios com capacidade de editar publica\u00e7\u00f5es podem precisar de acesso a uma p\u00e1gina com informa\u00e7\u00f5es confidenciais ou propriet\u00e1rias.<\/li><\/ul>","data":{"listType":"unordered"},"style":{"parent_style":{}}},{"type":"core\/paragraph","render":"<p>With the MemberPress Rules function, you can easily protect any content on your site using the parameters that make the most sense for the situation.<\/p>","content":[{"type":"text","data":"With the MemberPress Rules function, you can easily protect any content on your site using the parameters that make the most sense for the situation."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">How to Protect Content Based on Roles and Capabilities with MemberPress (2 Methods)<\/h2>","content":"Como proteger o conte\u00fado com base em fun\u00e7\u00f5es e recursos com o MemberPress (2 m\u00e9todos)","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>In most circumstances, you\u2019ll protect your site content based on membership designation. However, if you do find it necessary to protect content based on roles or capabilities, MemberPress gives you the flexibility to do so. Here\u2019s how.<\/p>","content":[{"type":"text","data":"In most circumstances, you\u2019ll protect your site content based on membership designation. However, if you do find it necessary to protect content based on roles or capabilities, MemberPress gives you the flexibility to do so. Here\u2019s how."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Method 1: Protect Content Based on a Role<\/h3>","content":"M\u00e9todo 1: Proteger o conte\u00fado com base em uma fun\u00e7\u00e3o","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>If you haven\u2019t already done so, create the content you want to protect.<\/p>","content":[{"type":"text","data":"If you haven\u2019t already done so, create the content you want to protect."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Next, from your WordPress dashboard, go to <em>MemberPress<\/em> &gt; <em>Rules &gt; Add New<\/em>:<\/p>","content":[{"type":"text","data":"Next, from your WordPress dashboard, go to <em>MemberPress<\/em> &gt; <em>Rules &gt; Add New<\/em>:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-1024x569.png\" alt=\"Screenshot of MemberPress admin dashboard\" class=\"wp-image-25248\"\/><\/a><\/figure><\/div>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-1024x569.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules.png","alt":"Screenshot of MemberPress admin dashboard","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-1024x569.png","linkDestination":"media","align":"center"},"style":{"width":1024,"height":569,"align":"center","parent_style":{},"sizeSlug":"large","alignSelf":"center"}},{"type":"core\/paragraph","render":"<p>Under <em>Protected Content<\/em>, select the post or page you want to protect. In the <em>Access Conditions<\/em> menu, select <em>Role<\/em>: <\/p>","content":[{"type":"text","data":"Under <em>Protected Content<\/em>, select the post or page you want to protect. In the <em>Access Conditions<\/em> menu, select <em>Role<\/em>: "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-1024x389.png\" alt=\"Screenshot of MemberPress admin - Rules options.\" class=\"wp-image-25249\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-1024x389.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select.png","alt":"Screenshot of MemberPress admin - Rules options.","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-select-1024x389.png","linkDestination":"media"},"style":{"width":1024,"height":389,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>Once you do, a dropdown menu will appear to the right. From it, select the specific role you want to allow access to:<\/p>","content":[{"type":"text","data":"Once you do, a dropdown menu will appear to the right. From it, select the specific role you want to allow access to:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-1024x388.png\" alt=\"Screenshot of MemberPress admin - Rules option selected: Editor.\" class=\"wp-image-25250\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-1024x388.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles.png","alt":"Screenshot of MemberPress admin - Rules option selected: Editor.","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-roles-1024x388.png","linkDestination":"media"},"style":{"width":1024,"height":388,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>If you have third-party plugins that automatically create WordPress roles, you'll notice these are listed here in addition to the default WordPress roles of Administrator, Editor, Author, Contributor, and Subscriber.<\/p>","content":[{"type":"text","data":"If you have third-party plugins that automatically create WordPress roles, you'll notice these are listed here in addition to the default WordPress roles of Administrator, Editor, Author, Contributor, and Subscriber."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>For example, <a href=\"https:\/\/wordpress.org\/plugins\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a> adds the roles of Customer and Shop Manager to WordPress. If you wanted to create content and make it visible only to those who have purchased products from you, you could use a role-based rule to do so.<\/p>","content":[{"type":"text","data":"For example, <a href=\"https:\/\/wordpress.org\/plugins\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a> adds the roles of Customer and Shop Manager to WordPress. If you wanted to create content and make it visible only to those who have purchased products from you, you could use a role-based rule to do so."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>You can also add additional rules to any piece of content by selecting the <em>Plus<\/em> (+) icon under <em>Access Conditions<\/em>. This gives you the ability to completely customize your permissions.<\/p>","content":[{"type":"text","data":"You can also add additional rules to any piece of content by selecting the <em>Plus<\/em> (+) icon under <em>Access Conditions<\/em>. This gives you the ability to completely customize your permissions."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h3 class=\"wp-block-heading\">Method 2: Restrict Content Based on a Capability<\/h3>","content":"M\u00e9todo 2: Restringir conte\u00fado com base em um recurso","data":[],"style":{"align":"left","parent_style":{},"header":"h3","fontSize":"21px"}},{"type":"core\/paragraph","render":"<p>Create the content you want to protect, then go to <em>MemberPress<\/em> &gt; <em>Rules &gt;<\/em> <em>Add New<\/em> as we described above. <\/p>","content":[{"type":"text","data":"Create the content you want to protect, then go to <em>MemberPress<\/em> &gt; <em>Rules &gt;<\/em> <em>Add New<\/em> as we described above. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Under <em>Protected Content<\/em>, select the content you want to protect. Go to <em>Access Conditions<\/em> and select <em>Capabilities<\/em>:<\/p>","content":[{"type":"text","data":"Under <em>Protected Content<\/em>, select the content you want to protect. Go to <em>Access Conditions<\/em> and select <em>Capabilities<\/em>:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-1024x387.png\" alt=\"Screenshot of MemberPress admin - Capabilities options.\" class=\"wp-image-25251\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-1024x387.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select.png","alt":"Screenshot of MemberPress admin - Capabilities options.","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-select-1024x387.png","linkDestination":"media"},"style":{"width":1024,"height":387,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>In the field that appears to the right, type the function for the capability you want to grant access to. Any user with that capability will be allowed to access the content:<\/p>","content":[{"type":"text","data":"In the field that appears to the right, type the function for the capability you want to grant access to. Any user with that capability will be allowed to access the content:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-1024x552.png\" alt=\"Screenshot of MemberPress admin - Capabilities option entered: edit_posts.\" class=\"wp-image-25252\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-1024x552.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities.png","alt":"Screenshot of MemberPress admin - Capabilities option entered: edit_posts.","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/memberpress-rules-capabilities-1024x552.png","linkDestination":"media"},"style":{"width":1024,"height":552,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>You can find a list of default capability functions in the <a href=\"https:\/\/wordpress.org\/support\/article\/roles-and-capabilities\/#capabilities\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Codex<\/a>. To create a rule based on capabilities, you must type the capability name in the same format as it is listed in the WordPress Codex:<\/p>","content":[{"type":"text","data":"You can find a list of default capability functions in the <a href=\"https:\/\/wordpress.org\/support\/article\/roles-and-capabilities\/#capabilities\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Codex<\/a>. To create a rule based on capabilities, you must type the capability name in the same format as it is listed in the WordPress Codex:"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/image","render":"<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities.png\"><img src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1024x495.png\" alt=\"wordpress codex screenshot\" class=\"wp-image-25253\"\/><\/a><\/figure>","content":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1024x495.png","data":{"linkSrc":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities.png","alt":"wordpress codex screenshot","src":"https:\/\/memberpress.com\/wp-content\/uploads\/2021\/01\/wordpress-codex-author-capabilities-1024x495.png","linkDestination":"media"},"style":{"width":1024,"height":495,"align":"left","parent_style":{},"sizeSlug":"large"}},{"type":"core\/paragraph","render":"<p>You can add additional rules to any piece of content by selecting the <em>Plus<\/em> (+) icon under <em>Access Conditions<\/em>.<\/p>","content":[{"type":"text","data":"You can add additional rules to any piece of content by selecting the <em>Plus<\/em> (+) icon under <em>Access Conditions<\/em>."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/heading","render":"<h2 class=\"wp-block-heading\">Conclusion<\/h2>","content":"Conclus\u00e3o","data":[],"style":{"align":"left","parent_style":{},"header":"h2","fontSize":"27px"}},{"type":"core\/paragraph","render":"<p>Generally, you'll protect content on your membership website based on membership tiers. However, there may be instances where it\u2019s helpful to protect content based on a WordPress role or capability. <\/p>","content":[{"type":"text","data":"Generally, you'll protect content on your membership website based on membership tiers. However, there may be instances where it\u2019s helpful to protect content based on a WordPress role or capability. "}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p><a href=\"https:\/\/memberpress.com\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> gives you the flexibility and freedom to create these rules and control your content in the way that makes the most sense for your site.<\/p>","content":[{"type":"text","data":"<a href=\"https:\/\/memberpress.com\" target=\"_blank\" rel=\"noreferrer noopener\">MemberPress<\/a> gives you the flexibility and freedom to create these rules and control your content in the way that makes the most sense for your site."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>In this article, we discussed the Roles and Capabilities rules feature of MemberPress. We shared a few reasons you may want to use these options, and showed you how to add these rules in a few simple steps.<\/p>","content":[{"type":"text","data":"In this article, we discussed the Roles and Capabilities rules feature of MemberPress. We shared a few reasons you may want to use these options, and showed you how to add these rules in a few simple steps."}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p>Do you have any questions about protecting your content based on roles or capabilities? Let us know in the comments section below!<\/p>","content":[{"type":"text","data":"Do you have any questions about protecting your content based on roles or capabilities? Let us know in the comments section below!"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}},{"type":"core\/paragraph","render":"<p><strong>If you liked this article, be sure to follow us on <a href=\"https:\/\/www.facebook.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Facebook<\/a>, <a href=\"https:\/\/twitter.com\/memberpress\" rel=\"noreferrer noopener\" target=\"_blank\">Twitter<\/a>, <a href=\"https:\/\/www.instagram.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Instagram<\/a>, and <a href=\"https:\/\/www.linkedin.com\/showcase\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">LinkedIn<\/a>!<\/strong><\/p>","content":[{"type":"text","data":"<strong>If you liked this article, be sure to follow us on <a href=\"https:\/\/www.facebook.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Facebook<\/a>, <a href=\"https:\/\/twitter.com\/memberpress\" rel=\"noreferrer noopener\" target=\"_blank\">Twitter<\/a>, <a href=\"https:\/\/www.instagram.com\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">Instagram<\/a>, and <a href=\"https:\/\/www.linkedin.com\/showcase\/memberpress\/\" rel=\"noreferrer noopener\" target=\"_blank\">LinkedIn<\/a>!<\/strong>"}],"data":[],"style":{"textAlign":"left","color":"","dropCap":false,"parent_style":{}}}],"app_access":{"can_access":true,"restrict_message":null},"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts\/25247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/76756"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=25247"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts\/25247\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media\/25454"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=25247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/categories?post=25247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/tags?post=25247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}