Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get screen icon

This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.


Returns HTML tag with icon-32 background class for a screen.


(string) (optional) Screen name
Default: empty string
Some valid values: dashboard, posts, media, links, pages, comments, themes, plugins, users, management, options-general

Source File

get_screen_icon() is located in wp-admin/includes/screen.php