So as not to rewrite the plugin interface styles or modify the current ones, I want to add new styles for this plugin through my theme, for this I need to disable them, I do this through: remove_filters_with_method_name

remove_filters_with_method_name( 'wp_enqueue_scripts', 'register_plugin_assets', 10 );

now how can I use my custom css in such a way that the plugin can get them?

  • 1
    remove_filters_with_method_name() is not a WordPress function, and if you don't want to remove the plugin styles, why are you using it? Jun 25, 2021 at 10:28
  • because I need to disable the plugin styles, and then use my styles to customize the front that the plugin draws
    – Lerry
    Jun 25, 2021 at 10:31

1 Answer 1


Plugins don't need to "get" styles. You just need to enqueue your own stylesheet with styles for the markup used by that plugin. If the plugin is on the front-end, your styles could even just be added to your child theme, or Appearance > Customize > Additional CSS. If the plugin elements you want to style are in the admin, just enqueue your stylesheet with admin_enqueue_scripts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.