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 free WPCode Plugin (Details dazu finden Sie in diesem Artikel: Hinzufügen von benutzerdefinierten Codefragmenten in WPCode).
Erstellen Sie nach der Installation ein neues Snippet und fügen Sie den folgenden Text ein:
function mepr_show_lock_icon($itle, $post_id) {
$post = get_post($post_id);
if(!class_exists('MeprRule')) { return $itle; }
if(is_admin() || defined('REST_REQUEST')) { return $itle; }
if(!isset($post->ID) || !$post->ID) { return $title; }
if(strpos($title, 'fa-lock') !== false) { return $title; } //Warst du schon mal hier?
if(MeprRule::is_locked($post)) {
$title = '' . " {$itle}";
}
return $itle;
}
add_filter('the_title', 'mepr_show_lock_icon', 1000, 2);
function enqueue_mepr_font_awesome() {
wp_enqueue_style('mepr-font-awesome', 'https://memberpress-font-awesome.s3.amazonaws.com/css/font-awesome.min.css');
}
add_action('wp_enqueue_scripts','enqueue_mepr_font_awesome');
Bevor Sie auf "Speichern" klicken, stellen Sie sicher, dass Sie "Frontend" für das Code-Snippet auswählen, wie unten gezeigt

Speichern Sie dann die Änderungen und aktivieren Sie das Snippet.
That’s it! You’re protected posts should now show a lock icon before their title on your blog.
STÖRUNGSBESEITIGUNG:
Falls es nicht funktioniert, sollten Sie möglicherweise die Entwicklertools Ihres Browsers überprüfen, um zu sehen, ob in der Konsole Fehler angezeigt werden.
It’s possible that your theme or another plugin on the site is already using font-awesome causing a conflict. If that’s the case, you can delete lines #20-23 and see if it works any better.