描述 当前设置为前端主题的主题名称。 出于所有意图和目的,模板名称和样式表名称在大多数情况下都是相同的。 返回 string 样式表名称。 钩子 apply_filters( 'stylesheet', string $stylesheet ) 过滤当前样式表的名称。 相关使用描述apply_filters()调用已添加到过滤器钩子的回调函数get_option()基于选项名称检索选项值被使用描述get_stylesheet_directory()检索启用的主题的样式表目录路径get_stylesheet_directory_uri()检索启用的主题的样式表目录URIwp_get_theme()获取主题的WP_Theme对象wp_get_global_styles_svg_filters()_register_theme_block_patterns()wp_get_global_stylesheet()WP_REST_Edit_Site_Export_Controller::export()wp_generate_block_templates_export_file()block_template_part()_get_block_template_file()_get_block_templates_files()get_block_theme_folders()is_theme_paused()wp_edit_theme_plugin_file()wp_update_custom_css_post()wp_get_custom_css_post()wp_get_custom_css()Custom_Background::ajax_background_add()Theme_Upgrader::current_before()Theme_Upgrader::current_after()Theme_Upgrader::bulk_upgrade()wp_prepare_themes_for_js()Theme_Upgrader_Skin::after()Custom_Image_Header::ajax_header_add()Custom_Image_Header::ajax_header_remove()Custom_Image_Header::customize_set_last_used()Custom_Image_Header::get_uploaded_header_images()Custom_Image_Header::set_header_image()WP_Customize_Manager::register_controls()WP_Customize_Manager::__construct()validate_current_theme()wp_get_themes() 源码查看源码 官方文档 更新日志版本描述1.5.0开始引入