Disabling post images for not logged in users
You can use PHP strip_tags and hook to the_content filter by checking if user is logged in. add this to your functions.php file add_filter( ‘the_content’, ‘wpse_remove_img’ ); function wpse_remove_img( $content ){ if( ! is_user_logged_in() ){ // You need to specify which tag you want to keep here it’s p, a, h2,span, div. // Adjust accordingly … Read more