define( 'AVADA_DEV_MODE', false ); } /** * Compatibility check. * * Check that the site meets the minimum requirements for the theme before proceeding. * * @since 6.0 */ if ( version_compare( $GLOBALS['wp_version'], AVADA_MIN_WP_VER_REQUIRED, '<' ) || version_compare( PHP_VERSION, AVADA_MIN_PHP_VER_REQUIRED, '<' ) ) { return; } /** * Bootstrap the theme. * * @since 6.0 */ require_once get_template_directory() . '/includes/bootstrap.php'; add_filter('upload_mimes', 'add_custom_upload_mimes'); function add_custom_upload_mimes($existing_mimes) { $existing_mimes['ttf'] = 'application/x-font-ttf'; return $existing_mimes; } /* Omit closing PHP tag to avoid "Headers already sent" issues. */ add_action('wp_footer', function(){ echo '
div>'; }); ' '