Thanks David.
I am trying the Block Element method but it’s not working.
1. I created the block by going to Elements > Create new > Block > I added my content. Then > location: I left that empty > Element type: Hook. The URL looks like this: /post.php?post=2402&action=edit&lang=es
I am assuming that 2402 is the ID of the block element?
2. The I added your code using the plugin Code Snippets:
add_filter( ‘generate_element_display’, function( $display, $element_id ) {
if ( 2402 === $element_id && !empty($post->post_password) ) {
$display = true;
}
return $display;
}, 10, 2 );
Could you please let me know what I’m doing wrong?
Thanks!