Is a ACF Field Type to show ico select field based on selection.json generated from IcoMoon App
This ACF field type is compatible with ACF version:
- ACF 5+
Soon
/**
* 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';
}
Thanks @swashata and @micc83 for the jquery plugin fonticonpicker