Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Last active February 22, 2021 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkatz/0eeac08679d5912b52c9b16e7237690b to your computer and use it in GitHub Desktop.
Save zackkatz/0eeac08679d5912b52c9b16e7237690b to your computer and use it in GitHub Desktop.
GravityView - Remove default icons from Maps icon picker
<?php
/**
* Removes plugin iconset so that only theme icons remain.
*
* @param array $icons Associative array of icon URLs with `plugin` and `theme` keys.
*/
add_filter( 'gravityview/maps/available_icons/icons', function( $icons = array() ) {
$icons['plugin'] = array();
return $icons;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment