Skip to content

Show icons dropdown select field based on selection.json generated from IcoMoon App

Notifications You must be signed in to change notification settings

rhuan-dev/acf-icomoon

Repository files navigation

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

About

Show icons dropdown select field based on selection.json generated from IcoMoon App

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published