function menu_icon( $icon = "dashicons-admin-page" ) {

        if ( is_string( $icon ) && stripos( $icon, "dashicons" ) !== false ) {

            $this->options["menu_icon"] = $icon;

        } else {

            // Set a default menu icon
            $this->options["menu_icon"] = "dashicons-admin-page";
        }
    }
function menu_icon( $icon = "dashicons-admin-page" ) {

        if ( is_string( $icon ) && stripos( $icon, "dashicons" ) !== false ) {

            $this->options["menu_icon"] = $icon;

        } else {

            // Set a default menu icon
            $this->options["menu_icon"] = "dashicons-admin-page";
        }
    }
function menu_icon ( $ icon = "dashicons-admin-page" ) { if ( is_string ( $ icon ) && stripos ( $ icon , "dashicons" ) !== false ) { $ this -> options [ "menu_icon" ] = $ icon ; } else { // Set a default menu icon $ this -> options [ "menu_icon" ] = "dashicons-admin-page" ; } }
Set menu icon

Use this function to set the menu icon in the admin dashboard. Since WordPress v3.8
dashicons are used. For more information see @link http://melchoyce.github.io/dashicons/

@param string $icon dashicon name
Set menu icon