Last active
February 4, 2019 16:45
-
-
Save andykeith/b80c5fe4615229756839fe5d8af03cdb to your computer and use it in GitHub Desktop.
Preload icon font used in WooCommerce Product Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', function() { | |
if ( class_exists( 'WC_Product_Table_Plugin' ) ) { | |
echo '<link rel="preload" href="' . plugins_url( 'assets/fonts/fa-solid-900.woff2', WC_Product_Table_Plugin::FILE ) . '" as="font" type="font/woff2" crossorigin="anonymous">' . "\n"; | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment