21. Icon picker

Select icon, icon font-size and icon color

'icon_picker' => array(
    'type' => 'icon_picker',
    'label' => esc_html__('Icon Picker', 'my-domain'),
),

By default font awesome library is included with framework, but you can edit icon list by using WP filter:

apply_filters('wpcfto_icons_set', $icons)

Icons stored in array with single element like:

array(
    'title' => 'icon class',
    'searchTerms' => ['here', 'array', 'of', 'terms', 'to', 'search']
);

Last updated