Hi,
I am using the below PHP code through the code snippets plugin which is working fine.
add_action( ‘wp’, ‘lh_remove_archive_title’ );
function lh_remove_archive_title() {
remove_action( ‘generate_archive_title’, ‘generate_archive_title’ );
}
However, I want to reduce the number of plugins I use for my website. I tried the Block Elements Hook section for the above PHP to create the same result that I am getting with code snippets but it’s not working.
Can you please confirm if using this PHP is possible with the Block Elements Hook section? If yes, then what should be the options under settings and display rules?