所以我安装了wp mail bank插件,我想定制其中的某些核心部分。所以我选择使用挂钩:
位置:/wp邮件银行。php
function backend_plugin_css_scripts_mail_bank()
{
wp_enqueue_style("framework.css", plugins_url("/assets/css/framework.css",__FILE__));
wp_enqueue_style("wp-mail-bank.css", plugins_url("/assets/css/wp-mail-bank.css",__FILE__));
}
add_action("admin_init","backend_plugin_css_scripts_mail_bank");
所以我只想创建一个插件,用remove\\u操作替换此函数,如:
function dzaok_backend_plugin_css_scripts_mail_bank()
{
wp_enqueue_style("framework.css", plugins_url("/framework.css",__FILE__));
wp_enqueue_style("wp-mail-bank.css", /dzaok-mail.css",__FILE__));
}
add_action("admin_init","dzaok_backend_plugin_css_scripts_mail_bank");
有关此插件的信息,请参阅/wp admin/