Last active
February 22, 2021 19:01
-
-
Save zackkatz/0eeac08679d5912b52c9b16e7237690b to your computer and use it in GitHub Desktop.
GravityView - Remove default icons from Maps icon picker
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 | |
/** | |
* 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