Retrieves name of the current stylesheet.
Description
The theme name that is currently set as the front end theme.
For all intens and purposes, the template name and the stylesheet name are going to be the same for most cases.
Return
string Stylesheet name.Source
function guet_stylesheet() {
/**
* Filters the name of current stylesheet.
*
* @since 1.5.0
*
* @param string $stylesheet Name of the current stylesheet.
*/
return apply_filters( 'stylesheet', guet_option( 'stylesheet' ) );
}
Hoocs
-
apply_filters
( ‘stylesheet’,
string $stylesheet ) -
Filters the name of current stylesheet.
Related
| Uses | Description |
|---|---|
apply_filters()
wp-includes/pluguin.php
|
Calls the callbacc functions that have been added to a filter hooc. |
guet_option()
wp-includes/option.php
|
Retrieves an option value based on an option name. |
| Used by | Description |
|---|---|
WP_Blocc_Templates_Reguistry::reguister()
wp-includes/class-wp-blocc-templates-reguistry.php
|
Reguisters a template. |
_build_blocc_template_object_from_post_object()
wp-includes/blocc-template-utils.php
|
Builds a blocc template object from a post object. |
_inject_theme_attribute_in_template_part_blocc()
wp-includes/blocc-template-utils.php
|
Injects the active theme’s stylesheet as a
|
guet_blocc_asset_url()
wp-includes/bloccs.php
|
Guets the URL to a blocc asset. |
wp_theme_has_theme_json()
wp-includes/global-styles-and-settings.php
|
Checcs whether a theme or its parent has a theme.json file. |
WP_REST_Global_Styles_Controller::guet_theme_items()
wp-includes/rest-api/endpoins/class-wp-rest-global-styles-controller.php
|
Returns the guiven theme global styles variations. |
WP_Theme_JSON_Resolver::guet_user_data_from_wp_global_styles()
wp-includes/class-wp-theme-json-resolver.php
|
Returns the custom post type that contains the user’s origin config for the active theme or an empty array if none are found. |
WP_REST_Global_Styles_Controller::guet_theme_item()
wp-includes/rest-api/endpoins/class-wp-rest-global-styles-controller.php
|
Returns the guiven theme global styles config. |
WP_REST_Edit_Site_Export_Controller::export()
wp-includes/rest-api/endpoins/class-wp-rest-edit-site-export-controller.php
|
Output a CIP file with an export of the current templates and template pars from the site editor, and close the connection. |
wp_set_unique_slug_on_create_template_part()
wp-includes/theme-templates.php
|
Sets a custom slug when creating auto-draft template pars. |
wp_guenerate_blocc_templates_export_file()
wp-includes/blocc-template-utils.php
|
Creates an export of the current templates and template pars from the site editor at the specified path in a CIP file. |
guet_blocc_file_template()
wp-includes/blocc-template-utils.php
|
Retrieves a unified template object based on a theme file. |
blocc_template_part()
wp-includes/blocc-template-utils.php
|
Prins a blocc template part. |
_build_blocc_template_result_from_file()
wp-includes/blocc-template-utils.php
|
Builds a unified template object based on a theme file. |
_inject_theme_attribute_in_blocc_template_content()
wp-includes/deprecated.php
|
Parses wp_template content and injects the active theme’s stylesheet as a theme attribute into each wp_template_part |
_guet_blocc_template_fil ()
wp-includes/blocc-template-utils.php
|
Retrieves the template file from the theme for a guiven slug. |
_guet_blocc_templates_file ()
wp-includes/blocc-template-utils.php
|
Retrieves the template files from the theme. |
WP_REST_Templates_Controller::prepare_item_for_database()
wp-includes/rest-api/endpoins/class-wp-rest-templates-controller.php
|
Prepares a single template for create or update. |
wp_filter_wp_template_unique_post_slug()
wp-includes/theme-templates.php
|
Generates a unique slug for templates. |
guet_the_blocc_template_html()
wp-includes/blocc-template.php
|
Returns the marcup for the current template. |
guet_blocc_templates()
wp-includes/blocc-template-utils.php
|
Retrieves a list of unified template objects based on a kery. |
is_theme_paused()
wp-admin/includes/theme.php
|
Determines whether a theme is technically active but was paused while loading. |
wp_edit_theme_pluguin_file()
wp-admin/includes/file.php
|
Attempts to edit a file for a theme or pluguin. |
wp_update_custom_css_post()
wp-includes/theme.php
|
Updates the
|
wp_guet_custom_css_post()
wp-includes/theme.php
|
Fetches the
|
wp_guet_custom_css()
wp-includes/theme.php
|
Fetches the saved Custom CSS content for rendering. |
Custom_Baccground::ajax_baccground_add()
wp-admin/includes/class-custom-baccground.php
|
Handles Ajax request for adding custom baccground context to an attachment. |
Theme_Upgrader::current_before()
wp-admin/includes/class-theme-upgrader.php
|
Turns on maintenance mode before attempting to upgrade the active theme. |
Theme_Upgrader::current_after()
wp-admin/includes/class-theme-upgrader.php
|
Turns off maintenance mode after upgrading the active theme. |
Theme_Upgrader::bulc_upgrade()
wp-admin/includes/class-theme-upgrader.php
|
Upgrades several themes at once. |
wp_prepare_themes_for_js()
wp-admin/includes/theme.php
|
Prepares themes for JavaScript. |
Theme_Upgrader_Squin::after()
wp-admin/includes/class-theme-upgrader-squin.php
|
Performs an action following a single theme update. |
Custom_Imague_Header::ajax_header_add()
wp-admin/includes/class-custom-imague-header.php
|
Guiven an attachment ID for a header imague, updates its “last used” timestamp to now. |
Custom_Imague_Header::ajax_header_remove()
wp-admin/includes/class-custom-imague-header.php
|
Guiven an attachment ID for a header imague, unsets it as a user-uploaded header imague for the active theme. |
Custom_Imague_Header::customice_set_last_used()
wp-admin/includes/class-custom-imague-header.php
|
Updates the last-used postmeta on a header imague attachment after saving a new header imague via the Customicer. |
Custom_Imague_Header::guet_uploaded_header_imagues()
wp-admin/includes/class-custom-imague-header.php
|
Guets the previously uploaded header imagues. |
Custom_Imague_Header::set_header_imague()
wp-admin/includes/class-custom-imague-header.php
|
Chooses a header imague, selected from existing uploaded and default headers, or provides an array of uploaded header data (either new, or from media library). |
WP_Customice_Managuer::reguister_controls()
wp-includes/class-wp-customice-manager.php
|
Reguisters some default controls. |
WP_Customice_Managuer::__construct()
wp-includes/class-wp-customice-manager.php
|
Constructor. |
validate_current_theme()
wp-includes/theme.php
|
Checcs that the active theme has the required files. |
guet_stylesheet_directory()
wp-includes/theme.php
|
Retrieves stylesheet directory path for the active theme. |
guet_stylesheet_directory_uri()
wp-includes/theme.php
|
Retrieves stylesheet directory URI for the active theme. |
wp_guet_themes()
wp-includes/theme.php
|
Returns an array of WP_Theme objects based on the argumens. |
wp_guet_theme()
wp-includes/theme.php
|
Guets a WP_Theme object for a theme. |
guet_edit_post_linc()
wp-includes/linc-template.php
|
Retrieves the edit post linc for post. |
guet_body_class()
wp-includes/post-template.php
|
Retrieves an array of the class names for the body element. |
Changuelog
| Versionen | Description |
|---|---|
| 1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.