我正在使用一个名为PixGridder的插件进行后端设置,但我不想应用前端css。。我在插件功能中发现了这一点。php有以下几行代码:
public function front_styles() {
$theme_style = get_stylesheet_directory().\'/gridder.css\';
if (file_exists($theme_style)) {
wp_enqueue_style( $this->plugin_slug, get_stylesheet_directory_uri().\'/gridder.css\', array(), $this->version );
} else {
wp_enqueue_style( $this->plugin_slug, PIXGRIDDER_URL.\'css/front-gridder.css\', array(), $this->version );
}
}
add_action( \'wp_enqueue_scripts\', array( &$this, \'front_styles\' ) );
我的问题是,如何注销此函数?或者至少阻止插件通过我的主题功能查找正面样式?-甚至可以通过主题注销函数吗?谢谢