get_stylesheet()
Retrieves name of the current stylesheet.
Description
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.
Source
File: wp-includes/theme.php
function get_stylesheet() {
/**
* Filters the name of current stylesheet.
*
* @since WP-1.5.0
*
* @param string $stylesheet Name of the current stylesheet.
*/
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
}
Related
Uses
Uses | Description |
---|---|
wp-includes/theme.php: stylesheet |
Filters the name of current stylesheet. |
wp-includes/plugin.php: apply_filters() |
Calls the callback functions that have been added to a filter hook. |
wp-includes/option.php: get_option() |
Retrieves an option value based on an option name. |
Used By
Used By | Description |
---|---|
wp-admin/includes/theme.php: is_theme_paused() |
Determines whether a theme is technically active but was paused while loading. |
wp-includes/theme.php: wp_get_custom_css_post() |
Fetches the |
wp-includes/theme.php: wp_get_custom_css() |
Fetches the saved Custom CSS content for rendering. |
wp-includes/theme.php: wp_update_custom_css_post() |
Updates the |
wp-includes/theme.php: validate_current_theme() |
Checks that the active theme has the required files. |
wp-includes/theme.php: get_stylesheet_directory() |
Retrieves stylesheet directory path for the active theme. |
wp-includes/theme.php: get_stylesheet_directory_uri() |
Retrieves stylesheet directory URI for the active theme. |
wp-includes/theme.php: wp_get_themes() |
Returns an array of WP_Theme objects based on the arguments. |
wp-includes/theme.php: wp_get_theme() |
Gets a WP_Theme object for a theme. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::register_controls() |
Registers some default controls. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::__construct() |
Constructor. |
wp-admin/includes/class-custom-background.php: Custom_Background::ajax_background_add() |
Handles Ajax request for adding custom background context to an attachment. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::set_header_image() |
Choose a header image, selected from existing uploaded and default headers, or provide an array of uploaded header data (either new, or from media library). |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::ajax_header_add() |
Given an attachment ID for a header image, updates its “last used” timestamp to now. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::ajax_header_remove() |
Given an attachment ID for a header image, unsets it as a user-uploaded header image for the active theme. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::customize_set_last_used() |
Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::get_uploaded_header_images() |
Gets the previously uploaded header images. |
wp-admin/includes/class-theme-upgrader-skin.php: Theme_Upgrader_Skin::after() |
Action to perform following a single theme update. |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::bulk_upgrade() |
Upgrade several themes at once. |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::current_before() |
Turn on maintenance mode before attempting to upgrade the active theme. |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::current_after() |
Turn off maintenance mode after upgrading the active theme. |
wp-admin/includes/theme.php: wp_prepare_themes_for_js() |
Prepares themes for JavaScript. |
wp-admin/includes/file.php: wp_edit_theme_plugin_file() |
Attempts to edit a file for a theme or plugin. |
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |