get_stylesheet

The timeline below displays how wordpress function get_stylesheet has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Retrieves name of the current stylesheet.
 *
 * 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.
 *
 * @since 1.5.0
 *
 * @return string Stylesheet name.
 */
function get_stylesheet()
{
    /**
     * Filters the name of current stylesheet.
     *
     * @since 1.5.0
     *
     * @param string $stylesheet Name of the current stylesheet.
     */
    return apply_filters('stylesheet', get_option('stylesheet'));
}

WordPress Version: 4.6

/**
 * Retrieve name of the current stylesheet.
 *
 * The theme name that the administrator has currently set the front end theme
 * as.
 *
 * For all intents and purposes, the template name and the stylesheet name are
 * going to be the same for most cases.
 *
 * @since 1.5.0
 *
 * @return string Stylesheet name.
 */
function get_stylesheet()
{
    /**
     * Filters the name of current stylesheet.
     *
     * @since 1.5.0
     *
     * @param string $stylesheet Name of the current stylesheet.
     */
    return apply_filters('stylesheet', get_option('stylesheet'));
}

WordPress Version: 4.0

/**
 * Retrieve name of the current stylesheet.
 *
 * The theme name that the administrator has currently set the front end theme
 * as.
 *
 * For all intents and purposes, the template name and the stylesheet name are
 * going to be the same for most cases.
 *
 * @since 1.5.0
 *
 * @return string Stylesheet name.
 */
function get_stylesheet()
{
    /**
     * Filter the name of current stylesheet.
     *
     * @since 1.5.0
     *
     * @param string $stylesheet Name of the current stylesheet.
     */
    return apply_filters('stylesheet', get_option('stylesheet'));
}

WordPress Version: 3.8

/**
 * Retrieve name of the current stylesheet.
 *
 * The theme name that the administrator has currently set the front end theme
 * as.
 *
 * For all extensive purposes, the template name and the stylesheet name are
 * going to be the same for most cases.
 *
 * @since 1.5.0
 *
 * @return string Stylesheet name.
 */
function get_stylesheet()
{
    /**
     * Filter the name of current stylesheet.
     *
     * @since 1.5.0
     *
     * @param string $stylesheet Name of the current stylesheet.
     */
    return apply_filters('stylesheet', get_option('stylesheet'));
}

WordPress Version: 3.7

/**
 * Retrieve name of the current stylesheet.
 *
 * The theme name that the administrator has currently set the front end theme
 * as.
 *
 * For all extensive purposes, the template name and the stylesheet name are
 * going to be the same for most cases.
 *
 * @since 1.5.0
 * @uses apply_filters() Calls 'stylesheet' filter on stylesheet name.
 *
 * @return string Stylesheet name.
 */
function get_stylesheet()
{
    return apply_filters('stylesheet', get_option('stylesheet'));
}