绿站
绿色文摘
今天是:

交流 | 搜索 | +发贴

WordPress活动及新闻模块的2种删除方法
nydalu 2024年7月6日 196次

第一种:登陆你的 FTP 或者用 SSH,找到 /wp-admin/includes/dashboard.php 文件,把下面的代码删除,就不会有WordPress新闻了。
// WordPress News
wp_add_dashboard_widget( ‘dashboard_primary’, __( ‘WordPress News’ ), ‘wp_dashboard_primary’ );
为避免删错,建议先备份dashboard.php 文件,对照上面的代码。

第二种:你也可以使用下面的代码来删除之。
//移除WordPress 仪表盘首页的“插件”“其它WordPress 新闻”小工具
function remove_dashboard_widgets() {
global$wp_meta_boxes;
unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_plugins’]);
unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_secondary’]);
}
add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’);


  • gmvxindsdb 24-10-22 23:54  

    Muchas gracias. ?Como puedo iniciar sesion?


  • droversointeru 25-01-01 17:29  

    Hi there! I’m at work browsing your blog from my new iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the great work!

    https://www.droversointeru.com


  • 📣 + 1.21398 BTC.GET - https://graph.org/Message--120154-03-25?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📣 25-04-02 18:17  

    uu9il3


  • droversointeru 25-04-11 20:29  

    Some really select articles on this internet site, bookmarked.

    https://www.droversointeru.com


  • 🗑 Reminder- Process 1.62228 bitcoin. Assure > https://graph.org/Message--04804-03-25?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🗑 25-04-24 23:45  

    6ri893


  • 📉 Notification; SENDING 1.144162 BTC. GET >>> https://graph.org/Ticket--58146-05-02?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📉 25-05-03 04:00  

    xftxjq


  • 🔈 + 1.9807 BTC.NEXT - https://graph.org/Ticket--58146-05-02?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔈 25-05-04 12:01  

    lbxz4o


  • 📟 + 1.746953 BTC.GET - https://graph.org/Ticket--58146-05-02?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📟 25-05-12 10:33  

    is8yai


  • 📑 + 1.417219 BTC.NEXT - https://graph.org/Ticket--58146-05-02?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📑 25-05-13 20:03  

    uu3x4d


  • 🔐 Message: TRANSACTION 1,831017 BTC. Next => https://yandex.com/poll/HYTE3DqXnHUqpZMyFqetue?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔐 25-05-16 06:44  

    pla43m


  • zoritoler imol 25-05-22 19:23  

    F*ckin’ tremendous things here. I am very happy to look your article. Thank you so much and i’m having a look forward to contact you. Will you kindly drop me a mail?

    https://www.zoritolerimol.com



  • 关于 ·登录·管理
    加载1.747 查询 16