FA WP Admin Menu Icons

FA WP Admin Menu Icons | Patrik Csak

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
);

Installation

Composer

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

Git

$ cd <wp-content>/plugins
$ git clone [email protected]:ptrkcsk/fa-wp-admin-menu-icons.git

WordPress

How to install WordPress plugins.

Plugin author

Patrik Csak

Plugin official website address

https://wordpress.org/plugins/fa-wp-admin-menu-icons/
If you encounter problems in using the FA WP Admin Menu Icons plugin, you can comment below, and I will try my best to help you solve the problem

Leave a Comment

Your email address will not be published. Required fields are marked *