Awesome
wp-php-feather
WordPress template tag for Feather.
For more information on Feather itself, please refer to their README.
This is a fork of PHP class https://github.com/Pixelrobin/php-feather
ready to use in any WordPress Theme or Plugin
How to use
- import
class-feather-icons.php
to your theme or plugin, for example to/vendor/feather-icons
folder - add to
functions.php
line of code likerequire_once dirname( __FILE__ ) . '/vendor/feather-icons/class-feather-icons.php';
Use a static method to get icon Feather_Icons::get('icon-name-here');
Optional make helper function for your theme
Please check theme-function-helper.php
file with function example.
License
Feather is licensed under the MIT License.