Skip to content

Instantly share code, notes, and snippets.

@felipemarcos
Created May 5, 2022 15:32
Show Gist options
  • Save felipemarcos/52e84fe8e2cee4e2bc7b2574a3ceda8b to your computer and use it in GitHub Desktop.
Save felipemarcos/52e84fe8e2cee4e2bc7b2574a3ceda8b to your computer and use it in GitHub Desktop.
WordPress: Remove Duotone code from <body>
/**
* Plugin Name: Remove Duotone Code
* Description: Remove inline junk added by WordPress
* Author: Felipe Marcos
* Version: 0.1
*/
add_action('plugins_loaded', function() {
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
});
@felipemarcos
Copy link
Author

felipemarcos commented May 5, 2022

This plugin removes the SVG code added by WordPress to the body

Screen Shot 2022-05-05 at 12 32 47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment