/**
* Hide the WordPress version number
*/
function hide_wp_version() {
return '';
}
add_filter('the_generator', 'hide_wp_version');
/**
* Whitelisting Functions
*/
add_filter('bricks/code/echo_function_names', function ($function_name) {
return [
'@^brx_', // Allow all functions that start with "brx_"
];
});
/**
* Allow WOFF, WOFF2, TTF uploads
*/
add_filter('upload_mimes', function($mimes) {
$mimes['woff'] = 'font/woff';
$mimes['woff2'] = 'font/woff2';
$mimes['ttf'] = 'font/ttf';
return $mimes;
});