最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dashboard - How to remove "WordPress News" feed downloading?

programmeradmin0浏览0评论

A fresh WordPress install just downloaded 619 kB large feed used for the "WordPress News" widget on the dashboard. This renders things like wp option list useless as the longest line (!) is 600,000 characters wide.

I'm looking for a way to completely suppress this functionality.

A fresh WordPress install just downloaded 619 kB large feed used for the "WordPress News" widget on the dashboard. This renders things like wp option list useless as the longest line (!) is 600,000 characters wide.

I'm looking for a way to completely suppress this functionality.

Share Improve this question asked Oct 1, 2016 at 12:46 Borek BernardBorek Bernard 1,4783 gold badges17 silver badges29 bronze badges 1
  • sorry, but no real idea what are you talking about – Mark Kaplun Commented Oct 1, 2016 at 13:01
Add a comment  | 

1 Answer 1

Reset to default 4

I am not 100% certain if you are looking for a way to remove the Meta-boxes?

If so, following plugin could solve your 'issue'. (please backup and so on ...)

/**
 * Remove Dashboard widgets
 *
 * @version Wordpress 6.0.0
 */
add_action( 'wp_dashboard_setup', 'wpse241195_disable_dashboard_widgets' );
function wpse241195_disable_dashboard_widgets()
{
    remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );        // Quick Press
    remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );      // Recent Drafts
    remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );            // WordPress blog
    remove_action( 'welcome_panel', 'wp_welcome_panel' );                   // Remove WordPress Welcome Panel
}

It is the complete list, little overdone but as said, adjust to ownwishes.
Note:
This function removes them completely, so if you not wish that you should create a function to just hide them (which not removes them and imho it still will be loading the news feed and more)

See Codex for more information

发布评论

评论列表(0)

  1. 暂无评论