Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created May 17, 2016 04:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zackkatz/a31eaab2bbbdbdaa5572d9032059a1e8 to your computer and use it in GitHub Desktop.
Save zackkatz/a31eaab2bbbdbdaa5572d9032059a1e8 to your computer and use it in GitHub Desktop.
Use UTF-8 checkmark instead of Dashicon .dashicons-yes icon font
<?php
add_filter( 'gravityview_field_tick', 'convert_gravityview_field_tick' );
/**
* Convert <span> to ✓
* @param string $existing_tick HTML span with `dashicons dashicons-yes` class
* @return string HTML entity checkmark character (✓)
*/
function convert_gravityview_field_tick( $existing_tick ) {
return '&#x2713;'; // Use UTF-8 character instead of icon
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment