Skip to content
Show icons dropdown select field based on selection.json generated from IcoMoon App
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
fields
lang
screenshots
.gitignore
ACFIcoMoonPlugin.php
README.md
gulpfile.js
package-lock.json
package.json

README.md

ACF IcoMoon

Is a ACF Field Type to show ico select field based on selection.json generated from IcoMoon App

Screenshots

Field Type Settings ACF

Icon List

Compatibility

This ACF field type is compatible with ACF version:

  • ACF 5+

Installation

Soon

Filters

/**
* Update JSON file URL selection.json generated by icomoon
*
* This will change the URL of selection.json file for ALL created IcoMoon fields
* 
* You can include selection.json file in your theme, customize with direct URI 
* of your selection.json file
*
* @return string
*/
add_filter( 'rhicomoon_json_url', 'change_rhicomoon_json_url' );
function change_rhicomoon_json_url() {
   return 'https://example.com/selection.json';
}
/**
* Update path url of plugin
*
* Use this to embed the plugin in your theme, change de path URI of plugin embeded on your theme
*
* @return string
*/
add_filter( 'rhicomoon_assets_url', 'change_rhicomoon_assets_url' );
function change_rhicomoon_assets_url() {
   return get_template_directory_uri() . '/pluginPath';
}

Credits

Thanks @swashata and @micc83 for the jquery plugin fonticonpicker

You can’t perform that action at this time.