public function setLabelIcon($type, $config)
    {
        global $menu;
        switch ($type) {
            case 'post':
                $position = 5;
                break;
            case 'page':
                $position = 20;
                break;
        }
        if ($this->isArrayValueSet(2, $config)) {
            $icon = $config[2];
            // Append 'dashicons-' prefix if it has not been included
            if (strpos($icon, 'dashicons-') === false) {
                $icon = 'dashicons-' . $icon;
            }
            $menu[$position][6] = $icon;
        }
    }
public function setLabelIcon($type, $config)
    {
        global $menu;
        switch ($type) {
            case 'post':
                $position = 5;
                break;
            case 'page':
                $position = 20;
                break;
        }
        if ($this->isArrayValueSet(2, $config)) {
            $icon = $config[2];
            // Append 'dashicons-' prefix if it has not been included
            if (strpos($icon, 'dashicons-') === false) {
                $icon = 'dashicons-' . $icon;
            }
            $menu[$position][6] = $icon;
        }
    }
public function setLabelIcon ( $ type , $ config ) { global $ menu ; switch ( $ type ) { case 'post' : $ position = 5 ; break ; case 'page' : $ position = 20 ; break ; } if ( $ this -> isArrayValueSet ( 2 , $ config ) ) { $ icon = $ config [ 2 ] ; // Append 'dashicons-' prefix if it has not been included if ( strpos ( $ icon , 'dashicons-' ) === false ) { $ icon = 'dashicons-' . $ icon ; } $ menu [ $ position ] [ 6 ] = $ icon ; } }
Set post type icon

@param object $labels
@param string $many
Set post type icon