跳到内容

FA WP Admin Menu Icons

v10.1.0

Patrik Csak · 2017年3月25日 上架

Use Font Awesome icons for custom post types and custom menu pages.

正在使用
100+
评分
4.2 / 5
累计下载
1.1 万
最近更新
2026年10月15日
5 条评价需要 WordPress 4.4+已测试到 7.0.9PHP 8.2+

贡献者

截图

Screenshot of WordPress Admin Dashboard menu with an example custom post type and custom menu page which use the Font Awesome flag icon
Screenshot of WordPress Admin Dashboard menu with an example custom post type and custom menu page which use the Font Awesome flag icon
Screenshot of Custom Post Type UI Menu Icon field populated with 'fa-solid fa-thumbs-up'
Screenshot of Custom Post Type UI Menu Icon field populated with 'fa-solid fa-thumbs-up'

View on GitHub for better documentation

FA WP Admin Menu Icons allows you to use Font Awesome icons for WordPress custom post types and custom menu pages by passing the Font Awesome class string, just like using Font Awesome on the front end

Here’s an example:

register_post_type( 'custom_post_type', [
    //...
    'menu_icon' => 'fa-solid fa-thumbs-up',
    //...
] );

Usage

`register_post_type()`

To use a Font Awesome icon for your custom post type with register_post_type(), use a Font Awesome class string for the $args['menu_icon] parameter:

register_post_type( 'custom_post_type', [
    //...
    'menu_icon' => 'fa-solid fa-thumbs-up',
    //...
] );

`add_menu_page()`

To use a Font Awesome icon for your custom menu page with add_menu_page(), use a Font Awesome class string for the $icon_url parameter:

add_menu_page(
    page_title: 'Custom Menu Page',
    menu_title: 'Custom Menu Page',
    capability: 'manage_options',
    menu_slug: 'custom_menu_page',
    icon_url: 'fa-solid fa-thumbs-up',
);

Custom Post Type UI plugin

To use a Font Awesome icon with the Custom Post Type UI plugin, use a Font Awesome class string for the Menu Icon field when adding or editing a Post Type

Caveats

FA WP Admin Menu Icons only supports Font Awesome’s free icons

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums