Title: Wp Customizer Icon
Author: iqbalrony
Published: <strong>2019 年 6 月 30 日</strong>
Last modified: 2026 年 3 月 11 日

---

搜索插件

![](https://ps.w.org/wp-customizer-icon/assets/banner-772x250.png?rev=2114905)

![](https://ps.w.org/wp-customizer-icon/assets/icon-256x256.png?rev=2114905)

# Wp Customizer Icon

 作者：[iqbalrony](https://profiles.wordpress.org/iqbalrony/)

[下载](https://downloads.wordpress.org/plugin/wp-customizer-icon.1.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-customizer-icon/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-customizer-icon/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-customizer-icon/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-customizer-icon/#developers)

 [支持](https://wordpress.org/support/plugin/wp-customizer-icon/)

## 描述

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](https://github.com/iqbalrony/wp-customizer-icon)
project repository.

## 屏幕截图

[⌊This screenshot one.⌉⌊This screenshot one.⌉[

This screenshot one.

[⌊This screenshot two.⌉⌊This screenshot two.⌉[

This screenshot two.

[⌊This screenshot three.⌉⌊This screenshot three.⌉[

This screenshot three.

[⌊This screenshot four.⌉⌊This screenshot four.⌉[

This screenshot four.

## 安装

 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;
    }
    ```

## 常见问题

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Wp Customizer Icon」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ iqbalrony ](https://profiles.wordpress.org/iqbalrony/)

[帮助将「Wp Customizer Icon」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-customizer-icon)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-customizer-icon/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-customizer-icon/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-customizer-icon/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-customizer-icon/)。

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**7 月前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **6.9.9**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-customizer-icon/)
 * 标签
 * [customizer](https://cn.wordpress.org/plugins/tags/customizer/)[icon](https://cn.wordpress.org/plugins/tags/icon/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-customizer-icon/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/wp-customizer-icon/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-customizer-icon/reviews/)

## 贡献者

 *   [ iqbalrony ](https://profiles.wordpress.org/iqbalrony/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-customizer-icon/)