<style>.logo-hover-color img{filter:brightness(0) invert(1);opacity:.7;transition:all 0.35s ease}.logo-hover-color img:hover{filter:none;opacity:1}<style/><?php function set_missing_image_alt_text(){$images=get_posts(array('post_type'=>'attachment','post_mime_type'=>'image','posts_per_page'=>-1,'post_status'=>'inherit',));$updated=0;foreach ($images as $image){$alt=get_post_meta($image->ID,'_wp_attachment_image_alt',true);// Skip if alt already exists if (!empty(trim($alt))){continue}// Use attachment title $new_alt=trim($image->post_title);// If title is empty,use filename if (empty($new_alt)){$file=get_attached_file($image->ID);$new_alt=pathinfo($file,PATHINFO_FILENAME);$new_alt=str_replace(array('-','_'),' ',$new_alt)}update_post_meta($image->ID,'_wp_attachment_image_alt',$new_alt);$updated++}echo "Done. Updated {$updated} images."}// فقط یکبار اجرا شود add_action('admin_init','set_missing_image_alt_text');// Block all feed requests function disable_all_wordpress_feeds(){status_header(410);nocache_headers();wp_die('Feed is disabled.','Feed Disabled',array('response'=>410,'back_link'=>false,))}add_action('do_feed','disable_all_wordpress_feeds',1);add_action('do_feed_rdf','disable_all_wordpress_feeds',1);add_action('do_feed_rss','disable_all_wordpress_feeds',1);add_action('do_feed_rss2','disable_all_wordpress_feeds',1);add_action('do_feed_atom','disable_all_wordpress_feeds',1);add_action('do_feed_rss2_comments','disable_all_wordpress_feeds',1);add_action('do_feed_atom_comments','disable_all_wordpress_feeds',1);// Block feed requests detected by WordPress add_action('template_redirect',function (){if (is_feed()){disable_all_wordpress_feeds()}},1);// Block ?feed=... add_action('template_redirect',function (){if (isset($_GET['feed'])){disable_all_wordpress_feeds()}},1);// Remove feed links from <head>remove_action('wp_head','feed_links',2);remove_action('wp_head','feed_links_extra',3);// Remove RSS feed widget add_filter('widget_display_callback',function ($instance,$widget){if ($widget->id_base==='rss'){return false}return $instance},10,2);