The theme name that is currently set as the front end theme. For all intents and purposes, the template name and the stylesheet name are going to be the same for most cases.
Return
string
Stylesheet name.
Hooks fired · 1
One hook fires while get_stylesheet() runs, in this order:
Custom_Image_Header::set_header_image()Chooses a header image, selected from existing uploaded and default headers, or provides an array of uploaded header data (either new, or from media library).
181functionget_stylesheet(){182/**183 * Filters the name of current stylesheet.184 *185 * @since 1.5.0186 *187 * @param string $stylesheet Name of the current stylesheet.188 */189returnapply_filters('stylesheet',get_option('stylesheet'));190}
History
Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/theme.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.