📜  如何在 wordpress 中删除烦人的插件通知 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:45.884000             🧑  作者: Mango

代码示例1
/** This code may be used in functions.php, wp-config.php, or used to create an mu-plugin
* The purpose of the code is to remove all the anoying popups in WordPress
*/

add_action('admin_enqueue_scripts', 'ds_admin_theme_style');
add_action('login_enqueue_scripts', 'ds_admin_theme_style');
function ds_admin_theme_style() {
    if (!current_user_can( 'manage_options' )) {
        echo '';
    }
}