Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This creates a shortcode containing the HTML representation of a Font Awesome heart icon.
//Creates a shortcode that displays a Font Awesome heart icon
add_shortcode('fa-heart', 'gsc_shortcode_faheart');
function gsc_shortcode_faheart( $attr ){
return '<i class="fa fa-heart"></i>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment