Wordpress version: 4.7.1

I'm registering a classic custom pot type

 register_post_type ( 'products',  $products_args);

Where $products_args contains menu_icon

$products_args = array (
    'labels'    => array (
        'name'      => 'Prodotti',
    'menu-icon' => 'dashicons-cart',

Actually the admin menu for 'Products' is added, but the icon is alwyas fixed to the 'pin' (or 'post') icon

enter image description here

What am I doing wrong?



Simply replace




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.