X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/kubio/lib/filters
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
kubio
/
lib
/
filters
/
📁
..
📄
after-kubio-activation.php
(1.84 KB)
📄
allow-kubio-blog-override.php
(355 B)
📄
cache-plugins.php
(1.05 KB)
📄
default-editor-overlay.php
(4.24 KB)
📄
dismissable-notice.php
(2.73 KB)
📄
gutenerg-plugin-check.php
(936 B)
📄
image-size-auto-fix.php
(399 B)
📄
kubio-fresh-site.php
(785 B)
📄
post-insert.php
(1.21 KB)
📄
register-meta-fields.php
(627 B)
📄
requirements-notices.php
(3.69 KB)
📄
site-urls.php
(2.18 KB)
📄
starter-sites-feature.php
(138 B)
📄
svg-kses.php
(1.18 KB)
📄
wp-import.php
(6.41 KB)
Editing: svg-kses.php
<?php function kubio_get_svg_kses_allowed_elements( $allowed_html = array() ) { $svg_elements = array( 'svg' => array( 'xmlns', 'viewbox', 'id', 'data-name', 'width', 'height', 'version', 'xmlns:xlink', 'x', 'y', 'enable-background', 'xml:space', ), 'path' => array( 'd', 'id', 'class', 'data-name', ), 'g' => array( 'id', 'stroke', 'stroke-width', 'fill', 'fill-rule', 'transform', ), 'title' => array(), 'polygon' => array( 'id', 'points', ), 'rect' => array( 'x', 'y', 'width', 'height', 'transform', ), 'circle' => array( 'cx', 'cy', 'r', ), 'ellipse' => array( 'cx', 'cy', 'rx', 'ry', ), ); $shared_attrs = array( 'data-*', 'id', 'class' ); foreach ( $svg_elements as $element => $attrs ) { if ( ! isset( $allowed_html[ $element ] ) ) { $allowed_html[ $element ] = array(); } $allowed_html[ $element ] = array_merge( $allowed_html[ $element ], array_fill_keys( array_merge( $attrs, $shared_attrs ), true ) ); } return $allowed_html; } add_filter( 'wp_kses_allowed_html', 'kubio_get_svg_kses_allowed_elements' );
Upload File
Create Folder