{"id":62093,"date":"2024-02-13T08:56:06","date_gmt":"2024-02-13T13:56:06","guid":{"rendered":"https:\/\/memberpress.com\/docs\/show-lock-icon-by-protected-posts-titles\/"},"modified":"2024-04-30T13:40:48","modified_gmt":"2024-04-30T17:40:48","slug":"show-lock-icon-by-protected-posts-titles","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/","title":{"rendered":"Mostrar o \u00edcone LOCK nos t\u00edtulos de postagens protegidas"},"content":{"rendered":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong class=\"\">Observa\u00e7\u00e3o:\u00a0<\/strong>Este \u00e9 um artigo avan\u00e7ado para usu\u00e1rios ou desenvolvedores familiarizados com PHP, hooks do WordPress e FontAwesome.<\/p>\n\n\n\n<p>Se quiser mostrar um \u00edcone de BLOQUEIO ao lado dos t\u00edtulos de suas publica\u00e7\u00f5es protegidas no blog, nos resultados de pesquisa ou nas exibi\u00e7\u00f5es de arquivo, voc\u00ea pode fazer isso seguindo as instru\u00e7\u00f5es abaixo.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-j7eNGJkJMQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Primeiro, voc\u00ea deve instalar um aplicativo gratuito <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">C\u00f3digo WPC<\/a> (consulte este artigo para obter detalhes: <a href=\"https:\/\/memberpress.com\/pt\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\">Como adicionar trechos de c\u00f3digo personalizados no WPCode<\/a>).<\/p>\n\n\n\n<p>Depois de instalado, crie um novo snippet e cole o seguinte nele:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">function mepr_show_lock_icon($title, $post_id) {<br>  $post = get_post($post_id);<br><br>  if(!class_exists('MeprRule')) { return $title; }<br><br>  if(is_admin() || defined('REST_REQUEST')) { return $title; }<br><br>  if(!isset($post-&gt;ID) || !$post-&gt;ID) { return $title; }<br><br>  if(strpos($title, 'fa-lock') !== false) { return $title; } \/J\u00e1 esteve aqui?<br><br>  se(MeprRule::is_locked($post)) { <br>    $title = '<i class=\"fa fa-lock\" aria-hidden=\"true\"><\/i>' . \" {$title}\";<br>  }<br>  return $title;<br>}<br>add_filter('the_title', 'mepr_show_lock_icon', 1000, 2);<br><br>fun\u00e7\u00e3o enqueue_mepr_font_awesome() {<br>  wp_enqueue_style('mepr-font-awesome', 'https:\/\/memberpress-font-awesome.s3.amazonaws.com\/css\/font-awesome.min.css');<br>}<br>add_action('wp_enqueue_scripts','enqueue_mepr_font_awesome');<\/pre>\n\n\n\n<p>Antes de clicar em salvar, certifique-se de selecionar \u201cFront End\u201d para o trecho de c\u00f3digo, conforme mostrado abaixo.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-MoBeYoboVV.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Em seguida, \u201cSalve as altera\u00e7\u00f5es e ative\u201d o snippet.<\/p>\n\n\n\n<p>\u00c9 isso a\u00ed! Suas postagens protegidas agora devem mostrar um \u00edcone de cadeado antes do t\u00edtulo em seu blog.<\/p>\n\n\n\n<p><strong class=\"\">SOLU\u00c7\u00c3O DE PROBLEMAS:<\/strong><\/p>\n\n\n\n<p>Se n\u00e3o estiver funcionando, talvez seja necess\u00e1rio verificar as ferramentas de desenvolvedor do seu navegador para ver se algum erro aparece no console.<\/p>\n\n\n\n<p>\u00c9 poss\u00edvel que seu tema ou outro plug-in no site j\u00e1 esteja usando a font-awesome, causando um conflito. Se esse for o caso, voc\u00ea pode excluir as linhas #20-23 e ver se funciona melhor.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you\u2019d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you\u2019ll want to install a free WPCode plugin\u00a0(please check this article for details: How to add custom code snippets in WPCode). [\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":[1340],"ht-kb-tag":[],"class_list":{"0":"post-62093","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-rules","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=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/\" \/>\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=\"Show LOCK icon by protected posts titles | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/\" \/>\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-13T13:56:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-04-30T17:40:48+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=\"Show LOCK icon by protected posts titles | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#article\",\"name\":\"Show LOCK icon by protected posts titles | MemberPress\",\"headline\":\"Show LOCK icon by protected posts titles\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-j7eNGJkJMQ.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#articleImage\",\"width\":365,\"height\":83},\"datePublished\":\"2024-02-13T08:56:06-05:00\",\"dateModified\":\"2024-04-30T13:40:48-04:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"articleSection\":\"Rules and Redirections\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"position\":4,\"name\":\"Rules and Redirections\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#listItem\",\"name\":\"Show LOCK icon by protected posts titles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#listItem\",\"position\":5,\"name\":\"Show LOCK icon by protected posts titles\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/\",\"name\":\"Show LOCK icon by protected posts titles | MemberPress\",\"description\":\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T08:56:06-05:00\",\"dateModified\":\"2024-04-30T13:40:48-04: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>Show LOCK icon by protected posts titles | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Mostrar \u00edcone LOCK nos t\u00edtulos de postagens protegidas | MemberPress","description":"Observa\u00e7\u00e3o: este \u00e9 um artigo avan\u00e7ado para usu\u00e1rios ou desenvolvedores familiarizados com PHP, hooks do WordPress e FontAwesome. Se quiser mostrar um \u00edcone de BLOQUEIO ao lado dos t\u00edtulos de suas publica\u00e7\u00f5es protegidas nas visualiza\u00e7\u00f5es de blog, resultados de pesquisa ou arquivo, voc\u00ea pode fazer isso seguindo as instru\u00e7\u00f5es abaixo. Primeiro, voc\u00ea dever\u00e1 instalar um","canonical_url":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#article","name":"Show LOCK icon by protected posts titles | MemberPress","headline":"Show LOCK icon by protected posts titles","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-j7eNGJkJMQ.png","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#articleImage","width":365,"height":83},"datePublished":"2024-02-13T08:56:06-05:00","dateModified":"2024-04-30T13:40:48-04:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"articleSection":"Rules and Redirections"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","position":3,"name":"Custom Codes","item":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","position":4,"name":"Rules and Redirections","item":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#listItem","name":"Show LOCK icon by protected posts titles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#listItem","position":5,"name":"Show LOCK icon by protected posts titles","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage","url":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/","name":"Show LOCK icon by protected posts titles | MemberPress","description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T08:56:06-05:00","dateModified":"2024-04-30T13:40:48-04: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":"Show LOCK icon by protected posts titles | MemberPress","og:description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","og:url":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/","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-13T13:56:06+00:00","article:modified_time":"2024-04-30T17:40:48+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Show LOCK icon by protected posts titles | MemberPress","twitter:description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"62093","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"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":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":"Article","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2025-10-09 21:54:04","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2024-02-13 13:56:07","updated":"2026-03-03 14:53:00"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/\" title=\"Advanced Topics\">Advanced Topics<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/\" title=\"Custom Codes\">Custom Codes<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/\" title=\"Rules and Redirections\">Rules and Redirections<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tShow LOCK icon by protected posts titles\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/"},{"label":"Custom Codes","link":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/"},{"label":"Rules and Redirections","link":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/"},{"label":"Show LOCK icon by protected posts titles","link":"https:\/\/memberpress.com\/pt\/docs\/show-lock-icon-by-protected-posts-titles\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/62093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=62093"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/62093\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=62093"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-category?post=62093"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-tag?post=62093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}