FA WP Admin Menu Icons

Description

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

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

FA WP Admin Menu Icons on GitHub

Usage

FA WP Admin Menu Icons works for the following WordPress functions:

  • register_post_type()
  • add_menu_page()

Custom post type

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

Custom menu page

add_menu_page(
    'Custom Menu Page',
    'Custom Menu Page',
    'manage_options',
    'custom_menu_page',
    '',
    'fas fa-thumbs-up', // $icon_url
);

Screenshots

Installation

Composer

$ composer require wpackagist-plugin/fa-wp-admin-menu-icons

Git

$ cd <wp-content>/plugins
$ git clone git@github.com:ptrkcsk/fa-wp-admin-menu-icons.git

WordPress

How to install WordPress plugins.

Reviews

May 7, 2019
I don't know what the reviewer below is crying about in terms of a ReadMe, the description lists all you need to know. I had my font awesome menu icon displaying in seconds thanks to this. Appreciate the author's time to create and distribute! 🙂
October 16, 2018
Did exactly what I needed, to be able to use Font Awesome together with the Custom Post Type UI plugin. You just add the Font Awesome class as the Menu Icon. Thanks a lot!
September 26, 2018
Clearly, it isn't "plug" and play. After install, I couldn't figure out what it changed, where to change stuff at (icons to the menu). No documentation on how to use after install.
July 6, 2017
Very easy to put in fontawesome icons, so I don't just have to choose from the boring old dashicons.
Read all 4 reviews

Contributors & Developers

“FA WP Admin Menu Icons” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

3.8.0

Changed

  • Update Font Awesome from v5.9.0 to v5.11.2

3.7.0

Added

  • Test with WordPress v5.2.1
  • Add support for PHP v7.3

Changed

  • Update Font Awesome from v5.6.0 to v5.9.0

3.6.0

Changed

  • Update Font Awesome from v5.5.0 to v5.6.0

3.5.0

Changed

  • Update Font Awesome from v5.4.2 to v5.5.0

3.4.0

Changed

  • Update Font Awesome from v5.4.1 to v5.4.2

3.3.0

Changed

  • Update Font Awesome from v5.3.1 to v5.4.1

3.2.0

Changed

  • Update Font Awesome from v5.2.0 to v5.3.1

3.1.0

Changed

  • Update Font Awesome from v5.1.0 to v5.2.0

3.0.0

Changed

  • Initialize the plugin earlier in the WP lifecycle

2.8.0

Added

  • Tested with WordPress v4.9.6

Changed

  • Update Font Awesome from v5.0.13 to v5.1.0

2.7.0

Changed

  • Update Font Awesome from v5.0.12 to v5.0.13

2.6.0

Changed

  • Update Font Awesome from v5.0.11 to v5.0.12

2.5.0

Changed

  • Update Font Awesome from v5.0.10 to v5.0.11

2.4.0

Changed

  • Update Font Awesome from v5.0.9 to v5.0.10

2.3.1

Changed

  • Update README.txt changelog

2.3.0

Changed

  • Bump Font Awesome version from 5.0.8 to 5.0.9

2.2.1

Fixed

  • Fix styles action

2.2.0

Added

  • Add support for Font Awesome versions. Icons are now cached with their Font Awesome version so they can be updated when the Font Awesome version changes.

2.1.0

Added

  • Add links to changelog
  • Add links to readme badges
  • Integrate Travis and Code Climate test coverage

Changed

  • Instead of storing all icons in the plugin, get them remotely, as needed, and cache them in the database for future use
  • Make hooks code DRYer
  • Stop using static methods, to make testing easier
  • Make icons smaller so they look better next to Dashicons
  • Update Font Awesome shims

2.0.1

Added

Fixed

  • Fix old syntax in readme examples
  • Add missing ‘Usage’ section to README.txt

2.0.0

Added

  • Add unit tests

Changed

  • Upgrade to Font Awesome 5 icons and class syntax
  • Use PSR instead of WordPress for code style

Deprecated

  • Deprecate use of Font Awesome 4 class syntax

1.0.4

Changed

  • Format code

Removed

  • Remove caveat from documentation because it no longer applies

1.0.3

Added

  • Add more icons

1.0.2

Fixed

  • Fix undefined index

1.0.1

Fixed

  • Add icons to icons/. The directory was empty on the WordPress plugin repository.

1.0.0