File tree Expand file tree Collapse file tree 5 files changed +39
-2
lines changed
Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Version 1.4 released February 8, 2023
4+
5+ ### Added
6+ - Remove SVG filters.
7+
38## Version 1.3 released September 22, 2022
49
510### Added
Original file line number Diff line number Diff line change 11{
22 "name" : " meom/meom-dodo" ,
3- "version" : " 1.3 " ,
3+ "version" : " 1.4 " ,
44 "description" : " MEOM clean up WP." ,
55 "type" : " wordpress-muplugin" ,
66 "license" : " GPL-2.0-or-later" ,
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Remove SVG filters.
4+ *
5+ * @package MEOM Dodo
6+ */
7+
8+ namespace MEOM \Dodo ;
9+
10+ /**
11+ * Remove SVG filters.
12+ *
13+ * @return void
14+ */
15+ function remove_svg_filters () {
16+ // Allow filtering svg filters.
17+ if ( \apply_filters ( 'meom_dodo_remove_svg_filters ' , true ) ) {
18+ remove_action ( 'wp_body_open ' , 'wp_global_styles_render_svg_filters ' );
19+ }
20+ }
21+ add_action ( 'init ' , __NAMESPACE__ . '\remove_svg_filters ' );
Original file line number Diff line number Diff line change 44 * Author: MEOM
55 * Author URI: https://www.meom.fi/
66 * Description: Clean up WordPress.
7- * Version: 1.3
7+ * Version: 1.4
88 * License: GPL2 or later.
99 * Text Domain: meom-dodo
1010 * Domain Path: /languages
@@ -25,4 +25,5 @@ function meom_dodo_i18n() {
2525require_once dirname ( __FILE__ ) . '/inc/enqueue-assets.php ' ;
2626require_once dirname ( __FILE__ ) . '/inc/remove-admin-menu-items.php ' ;
2727require_once dirname ( __FILE__ ) . '/inc/remove-editor-settings.php ' ;
28+ require_once dirname ( __FILE__ ) . '/inc/remove-svg-filters.php ' ;
2829require_once dirname ( __FILE__ ) . '/inc/user-meta.php ' ;
Original file line number Diff line number Diff line change @@ -82,6 +82,16 @@ Example usage:
8282add_filter( 'meom_dodo_remove_layout_support', '__return_false' );
8383```
8484
85+ ### meom_dodo_remove_svg_filters
86+
87+ Allow SVG filters with the filter ` meom_dodo_remove_svg_filters ` .
88+
89+ Example usage:
90+
91+ ``` php
92+ add_filter( 'meom_dodo_remove_svg_filters', '__return_false' );
93+ ```
94+
8595### meom_dodo_add_utility_classes
8696
8797Remove adding utility classes with the filter ` meom_dodo_add_utility_classes ` .
You can’t perform that action at this time.
0 commit comments