绿站
绿色文摘
今天是:

交流 | 搜索 | +发贴

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

第一种:登陆你的 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


  • * * * Get Free Bitcoin Now: http://emrsparkhela.com/index.php?xhdz3e * * * hs=e9b8e2e4455a27331b2d77f5b0165f38* ххх* 25-05-24 13:17  

    ewsaue


  • 📠 + 1.153186 BTC.GET - https://yandex.com/poll/HYTE3DqXnHUqpZMyFqetue?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📠 25-06-09 19:35  

    isnyw1


  • 📋 + 1.698069 BTC.GET - https://yandex.com/poll/enter/TNcY7JqvFXjm5m5YZrG7sv?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📋 25-06-14 01:35  

    5ni12z


  • 🖋 Notification; TRANSACTION 1,959059 bitcoin. Receive > https://yandex.com/poll/enter/4Joc2mvUbapjsUMcMcKM3z?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🖋 25-06-19 13:42  

    d2qjvo


  • 📎 + 1.29078 BTC.GET - https://graph.org/Payout-from-Blockchaincom-06-26?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📎 25-07-07 00:04  

    0vn3s2


  • 📚 + 1.783936 BTC.GET - https://graph.org/Payout-from-Blockchaincom-06-26?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📚 25-07-13 23:24  

    mwm6th


  • 🔑 Notification; TRANSFER 1,930319 BTC. GET => https://graph.org/Payout-from-Blockchaincom-06-26?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔑 25-07-20 10:37  

    hp1r88


  • 📍 Email: + 1.523009 BTC. Continue => https://graph.org/Payout-from-Blockchaincom-06-26?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📍 25-07-20 19:19  

    7vbocx


  • 🔇 💰 Crypto Deposit - 0.42 BTC awaiting. Claim now >> https://graph.org/WITHDRAW-BITCOIN-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔇 25-07-31 14:23  

    gz9j8h


  • 📭 Security Notice - 1.05 Bitcoin transfer attempt. Authorize? => https://graph.org/TAKE-YOUR-BITCOIN-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📭 25-08-13 09:51  

    ebsxmc


  • 💾 ⚠️ Notification - 1.6 BTC ready for transfer. Proceed > https://graph.org/EARN-BTC-INSTANTLY-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 💾 25-08-14 06:55  

    6bfx0r


  • 📋 ⚠️ Verification Pending - 0.9 BTC transfer delayed. Resolve now → https://graph.org/ACQUIRE-DIGITAL-CURRENCY-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📋 25-08-14 11:54  

    1lhi0b


  • 🖨 🔜 Fast Deposit - 0.35 BTC processed. Finalize here > https://graph.org/GET-FREE-BITCOIN-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🖨 25-08-28 14:57  

    zk603s


  • 🔑 🏆 Bitcoin Offer - 0.25 BTC reserved. Get now >> https://graph.org/WITHDRAW-YOUR-COINS-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔑 25-08-31 01:33  

    d3hva4


  • 🖱 ❗ Important - 1.3 BTC transaction canceled. Resend now => https://graph.org/RECOVER-BITCOIN-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🖱 25-08-31 15:41  

    hv6ciq


  • 📍 🎉 Limited Offer: 0.75 BTC bonus waiting. Activate today >> https://graph.org/WITHDRAW-DIGITAL-FUNDS-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📍 25-09-01 00:55  

    uupp8y


  • 📈 ACCOUNT NOTICE - Suspicious transaction of 1.5 Bitcoin. Stop? > https://graph.org/COLLECT-BTC-07-23?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📈 25-09-04 18:22  

    m53qxc


  • 🔗 💸 Crypto Transaction - 0.55 BTC waiting. Tap to claim > https://graph.org/Get-your-BTC-09-04?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔗 25-10-01 23:24  

    s0s269


  • 📋 🎁 Bitcoin Bonus: 0.5 BTC credited. Claim now → https://graph.org/Get-your-BTC-09-04?hs=e9b8e2e4455a27331b2d77f5b0165f38& 📋 25-10-08 17:39  

    7swg3r


  • 🔖 🚨 Important: 2.0 BTC transaction canceled. Retry now => https://graph.org/Get-your-BTC-09-04?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🔖 25-10-12 18:51  

    f76ms9


  • 🗒 Security Alert; 0.4 BTC transfer attempt. Authorize? >> https://graph.org/Binance-10-06-3?hs=e9b8e2e4455a27331b2d77f5b0165f38& 🗒 25-10-30 12:11  

    fwqgog



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