Filter: bricks/svg/allowed_tags
Filters the list of allowed SVG tags during sanitization. This is used by the Bricks SVG sanitizer to ensure that uploaded or rendered SVGs do not contain malicious tags.
Parameters
Section titled “Parameters”$tags(array): Array of allowed SVG tags.
Example usage
Section titled “Example usage”add_filter( 'bricks/svg/allowed_tags', function( $tags ) { // Example: Allow 'foreignObject' tag (use with caution!) $tags[] = 'foreignObject';
return $tags;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.