You are here:
< Back

Filtering of allowed tags and attributes can be done using the wpsvg_allowed_tags and wpsvg_allowed_attributes filters. They’ve been available since version 1.6.0 of the plugin.

See below for use of these filters:

add_filter( 'wpsvg_allowed_tags', function ( $tags ) {

	// Do what you want here...

	return $tags;
} );
add_filter( 'wpsvg_allowed_attributes', function ( $attributes ) {

	// Do what you want here...

	return $attributes;
} );
Filtering allowed tags and attributes