{"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\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/","title":{"rendered":"Afficher l'ic\u00f4ne LOCK sur les titres des messages prot\u00e9g\u00e9s"},"content":{"rendered":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong class=\"\">Remarque :\u00a0<\/strong>Il s'agit d'un article avanc\u00e9 pour les utilisateurs ou les d\u00e9veloppeurs familiers avec PHP, WordPress hooks, et FontAwesome.<\/p>\n\n\n\n<p>Si vous souhaitez afficher une ic\u00f4ne VERROU \u00e0 c\u00f4t\u00e9 des titres de vos articles prot\u00e9g\u00e9s dans les vues du blog, des r\u00e9sultats de recherche ou des archives, vous pouvez le faire en suivant les instructions ci-dessous.<\/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>Vous devez d'abord installer un <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">WPCode<\/a> (veuillez consulter cet article pour plus de d\u00e9tails) : <a href=\"https:\/\/memberpress.com\/fr\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\">Comment ajouter des extraits de code personnalis\u00e9s dans WPCode ?<\/a>).<\/p>\n\n\n\n<p>Une fois install\u00e9, cr\u00e9ez un nouveau Snippet et collez-y ce qui suit :<\/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 ; } \/\/D\u00e9j\u00e0 venu ici ?<br><br>  if(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>function 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>Avant de cliquer sur \u201c Enregistrer \u201d, veillez \u00e0 s\u00e9lectionner \u00ab Front End \u00bb pour l'extrait de code, comme indiqu\u00e9 ci-dessous.<\/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>Ensuite, \u201c Enregistrez les modifications et activez \u201d l'extrait.<\/p>\n\n\n\n<p>Voil\u00e0, c'est fait ! Vos articles prot\u00e9g\u00e9s devraient maintenant afficher une ic\u00f4ne de cadenas devant leur titre sur votre blog.<\/p>\n\n\n\n<p><strong class=\"\">D\u00c9PANNAGE :<\/strong><\/p>\n\n\n\n<p>Si cela ne fonctionne pas, vous devrez peut-\u00eatre consulter les outils de d\u00e9veloppement de votre navigateur pour voir si des erreurs apparaissent dans la console.<\/p>\n\n\n\n<p>Il est possible que votre th\u00e8me ou un autre plugin sur le site utilise d\u00e9j\u00e0 font-awesome, ce qui provoque un conflit. Si c'est le cas, vous pouvez supprimer les lignes #20-23 et voir si cela fonctionne mieux.<\/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\/fr\/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=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"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\/fr\/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\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-j7eNGJkJMQ.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"articleSection\":\"Rules and Redirections\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/rules\\\/#listItem\",\"position\":4,\"name\":\"Rules and Redirections\",\"item\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/rules\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#listItem\",\"name\":\"Show LOCK icon by protected posts titles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/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\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T08:56:06-05:00\",\"dateModified\":\"2024-04-30T13:40:48-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/fr\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Show LOCK icon by protected posts titles | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Afficher l'ic\u00f4ne LOCK sur les titres des messages prot\u00e9g\u00e9s | MemberPress","description":"Note : Il s'agit d'un article avanc\u00e9 pour les utilisateurs ou les d\u00e9veloppeurs familiers avec PHP, WordPress hooks, et FontAwesome. Si vous souhaitez afficher une ic\u00f4ne LOCK \u00e0 c\u00f4t\u00e9 des titres de vos articles prot\u00e9g\u00e9s dans les vues du blog, des r\u00e9sultats de recherche ou des archives, vous pouvez le faire en suivant les instructions ci-dessous. Tout d'abord, vous devez installer un fichier","canonical_url":"https:\/\/memberpress.com\/fr\/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\/fr\/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\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-j7eNGJkJMQ.png","@id":"https:\/\/memberpress.com\/fr\/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":"fr-FR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"articleSection":"Rules and Redirections"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/fr\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/custom-codes\/#listItem","position":3,"name":"Custom Codes","item":"https:\/\/memberpress.com\/fr\/doc-categories\/custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/rules\/#listItem","position":4,"name":"Rules and Redirections","item":"https:\/\/memberpress.com\/fr\/doc-categories\/rules\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#listItem","name":"Show LOCK icon by protected posts titles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/fr\/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\/fr\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/fr\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/fr\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/fr\/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\/fr\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage","url":"https:\/\/memberpress.com\/fr\/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":"fr-FR","isPartOf":{"@id":"https:\/\/memberpress.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/fr\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T08:56:06-05:00","dateModified":"2024-04-30T13:40:48-04:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/fr\/#website","url":"https:\/\/memberpress.com\/fr\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/memberpress.com\/fr\/#organization"}}]},"og:locale":"fr_FR","og:site_name":"MemberPress","og:type":"article","og:title":"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\/fr\/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\/fr\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/fr\/doc-categories\/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\/fr\/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\/fr\/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\/fr"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/fr\/doc-categories\/advanced-topics\/"},{"label":"Custom Codes","link":"https:\/\/memberpress.com\/fr\/doc-categories\/custom-codes\/"},{"label":"Rules and Redirections","link":"https:\/\/memberpress.com\/fr\/doc-categories\/rules\/"},{"label":"Show LOCK icon by protected posts titles","link":"https:\/\/memberpress.com\/fr\/docs\/show-lock-icon-by-protected-posts-titles\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/62093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/comments?post=62093"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb\/62093\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/media?parent=62093"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=62093"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=62093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}