删除WordPress小工具里的RSS订阅

  • 首先在用FTP工具打开wp-includes/default-widgets.php,查找WP_Widget_Meta找到以下这段代码
<UL>
<?php wp_register(); ?>
<LI><?php wp_loginout(); ?></LI>
<LI><A title=”<?php echo esc_attr(__(‘Syndicate this site using RSS 2.0′)); ?>” href=”<?php bloginfo(‘rss2_url’); ?>”><?php _e(‘Entries <abbr title=”Really Simple Syndication”>RSS</ABBR>’); ?></A></LI>
<LI><A title=”<?php echo esc_attr(__(‘The latest comments to all posts in RSS’)); ?>” href=”<?php bloginfo(‘comments_rss2_url’); ?>”><?php _e(‘Comments <abbr title=”Really Simple Syndication”>RSS</ABBR>’); ?></A></LI>
  • 你想删除什么就把对应的那个li中间的内容删去就行了,例如想删去文章rss功能,就把
<LI><A title=”<?php echo esc_attr(__(‘Syndicate this site using RSS 2.0′)); ?>” href=”<?php bloginfo(‘rss2_url’); ?>”><?php _e(‘Entries <abbr title=”Really Simple Syndication”>RSS</ABBR>’); ?></A></LI>

这段代码删了就行!

转帖自:懒猫博客

Leave a comment

Your email address will not be published. Required fields are marked *