Filter: bricks/custom_fonts/mime_types
Filters the list of allowed MIME types for custom font uploads in the Bricks Custom Fonts manager.
Parameters
Section titled “Parameters”$mime_types(array): Array of file extensions and their corresponding MIME types (e.g.,['woff2' => 'font/woff2']).
Example usage
Section titled “Example usage”add_filter( 'bricks/custom_fonts/mime_types', function( $mime_types ) { // Add support for OTF fonts $mime_types['otf'] = 'font/otf';
return $mime_types;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.