Plugin info

Total downloads: 1,341
Active installs: 40
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 11/30/2022 (1127 days ago)
Added to WordPress: 6/30/2019 (6 years old)
Minimum WordPress version: 4.5
Tested up to WordPress version: 6.1.9
Minimum PHP version: 5.6

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1127 days ago

20/100

Is Wp Customizer Icon abandoned?

Possibly abandoned (last update 1127 days ago).

Compatibility

Requires WordPress: 4.5
Tested up to: 6.1.9
Requires PHP: 5.6

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

Wp Customizer Icon plugin is very easy to use. It contains 3696 material design icons. User can add extra icon classs to the icon library from there theme.
There is an filter hook named WPCI_customizer_icons by which user can marge extra icons class. Icon control name is WPCI_Customize_Icon_Control.
See the Github project repository.

Installation

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Now create customizer icon field by using WPCI_Customize_Icon_Control class in your theme.

Example:-

/**
 * Customizer register
 */
add_action( 'customize_register', 'mytheme_customize_register' );
function mytheme_customize_register( $wp_customize ) {
    $wp_customize->add_section(
            'test_section',
            array(
                'title' => __('Icon', 'wp-customizer-icon'),
                'priority' => 5,
            )
        );
    $wp_customize->add_setting(
            'test_icon',
            array(
                'default' => 'mdi mdi-access-point',
                'transport' => 'refresh',
            )
        );
    $wp_customize->add_control(
            new WPCI_Customize_Icon_Control(
                $wp_customize,
                'test_icon',
                array(
                    'type'      => 'icon',
                    'label' => __('Test Icon', 'wp-customizer-icon'),
                    'section' => 'test_section',
                    'priority' => 10,
                ))
    );
}

/**
 * Get Icon Class
 */
$icon_cls = get_theme_mod('test_icon');
echo '<i class="'.esc_attr( $icon_cls ).'"></i>';

Add extra icon library by filter hook named WPCI_customizer_icons.
Example:-

add_action('WPCI_customizer_icons','push_icon');
function push_icon($icon_array){
    $new_icon = array_merge(
        array(
            'fa fa-facebook' =>'fa fa-facebook',
            'fa fa-twitter' =>'fa fa-twitter'
        ),$icon_array
    );
    return $new_icon;
}

Frequently Asked Questions

Is there way to add extra icon library

Yes, there is an filter hook named WPCI_customizer_icons by which user can marge extra icons class.

Review feed

No reviews available

Screenshots

  1. This screenshot one.

    This screenshot one.

  2. This screenshot two.

    This screenshot two.

  3. This screenshot three.

    This screenshot three.

  4. This screenshot four.

    This screenshot four.

Changelog

No changelog available