wp-includes/block-patterns.php:_register_theme_block_patterns() | Register any patterns that the active theme may provide under its ./patterns/ directory. Each pattern is defined as a PHP file and defines its metadata using plugin-style headers. The minimum required definition is: |
wp-includes/class-wp-theme-json-resolver.php:WP_Theme_JSON_Resolver::get_style_variations() | Returns the style variations defined by the theme. |
wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php:WP_REST_Global_Styles_Controller::get_theme_items() | Returns the given theme global styles variations. |
wp-includes/class-wp-theme-json-resolver.php:WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles() | Returns the custom post type that contains the user’s origin config for the active theme or a void array if none are found. |
wp-includes/class-wp-theme-json-resolver.php:WP_Theme_JSON_Resolver::get_user_data() | Returns the user’s origin config. |
wp-includes/class-wp-theme-json-resolver.php:WP_Theme_JSON_Resolver::get_user_global_styles_post_id() | Returns the ID of the custom post type that stores user data. |
wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php:WP_REST_Global_Styles_Controller::get_theme_item() | Returns the given theme global styles config. |
wp-includes/theme.php:wp_is_block_theme() | Returns whether the active theme is a block-based theme or not. |
wp-includes/theme-templates.php:wp_set_unique_slug_on_create_template_part() | Sets a custom slug when creating auto-draft template parts. |
wp-includes/block-template-utils.php:get_block_file_template() | Retrieves a single unified template object using its id. |
wp-includes/block-template-utils.php:_inject_theme_attribute_in_block_template_content() | Parses wp_template content and injects the active theme’s stylesheet as a theme attribute into each wp_template_part |
wp-includes/block-template-utils.php:_build_block_template_result_from_file() | Build a unified template object based on a theme file. |
wp-includes/block-template-utils.php:_build_block_template_result_from_post() | Build a unified template object based a post Object. |
wp-includes/class-wp-theme-json-resolver.php:WP_Theme_JSON_Resolver::get_theme_data() | Returns the theme’s data. |
wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:WP_REST_Templates_Controller::prepare_item_for_database() | Prepares a single template for create or update. |
wp-includes/theme-templates.php:wp_filter_wp_template_unique_post_slug() | Generates a unique slug for templates. |
wp-includes/block-template.php:resolve_block_template() | Return the correct ‘wp_template’ to render for the request template type. |
wp-includes/block-template-utils.php:get_block_templates() | Retrieves a list of unified template objects based on a query. |
wp-includes/rest-api/class-wp-rest-server.php:WP_REST_Server::add_active_theme_link_to_index() | Adds a link to the active theme for users who have proper permissions. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:WP_REST_Themes_Controller::get_item_permissions_check() | Checks if a given request has access to read the theme. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:WP_REST_Themes_Controller::get_item() | Retrieves a single theme. |
wp-includes/theme.php:validate_theme_requirements() | Validates the theme requirements for WordPress version and PHP version. |
wp-includes/class-wp-recovery-mode-email-service.php:WP_Recovery_Mode_Email_Service::get_debug() | Return debug information in an easy to manipulate format. |
wp-includes/class-wp-recovery-mode-email-service.php:WP_Recovery_Mode_Email_Service::get_cause() | Gets the description indicating the possible cause for the error. |
wp-admin/includes/class-wp-debug-data.php:WP_Debug_Data::debug_data() | Static function for generating site debug data when required. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_theme_version() | Test if themes are outdated, or unnecessary. |
wp-admin/includes/schema.php:populate_network_meta() | Creates WordPress network meta and sets the default values. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:WP_REST_Themes_Controller::get_items() | Retrieves a collection of themes. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:WP_REST_Themes_Controller::prepare_item_for_response() | Prepares a single theme output for response. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:WP_REST_Posts_Controller::check_template() | Check whether the template is valid for the given post. |
wp-admin/includes/file.php:wp_edit_theme_plugin_file() | Attempts to edit a file for a theme or plugin. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:WP_REST_Posts_Controller::handle_template() | Sets the template for a post. |
wp-admin/includes/ajax-actions.php:wp_ajax_install_theme() | Ajax handler for installing a theme. |
wp-admin/includes/ajax-actions.php:wp_ajax_update_theme() | Ajax handler for updating a theme. |
wp-admin/includes/ajax-actions.php:wp_ajax_delete_theme() | Ajax handler for deleting a theme. |
wp-includes/class-wp-theme.php:WP_Theme::get_core_default_theme() | Determines the latest WordPress default theme that is installed. |
wp-admin/includes/class-wp-automatic-updater.php:WP_Automatic_Updater::update() | Updates an item, if appropriate. |
wp-admin/includes/class-theme-upgrader.php:Theme_Upgrader::theme_info() | Get the WP_Theme object for a theme. |
wp-admin/includes/class-language-pack-upgrader.php:Language_Pack_Upgrader::get_name_for_update() | Get the name of an item being updated. |
wp-admin/includes/theme.php:wp_prepare_themes_for_js() | Prepares themes for JavaScript. |
wp-admin/includes/theme.php:get_page_templates() | Gets the page templates available in this theme. |
wp-admin/includes/deprecated.php:current_theme_info() | Retrieves information on the current active theme. |
wp-admin/includes/class-wp-theme-install-list-table.php:WP_Theme_Install_List_Table::_get_theme_status() | Check to see if the theme is already installed. |
wp-admin/includes/schema.php:populate_options() | Create WordPress options and set the default values. |
wp-admin/includes/update.php:update_right_now_message() | Displays WordPress version and active theme in the ‘At a Glance’ dashboard widget. |
wp-admin/includes/update.php:get_theme_updates() | |
wp-admin/includes/ajax-actions.php:wp_ajax_query_themes() | Ajax handler for getting themes from themes_api(). |
wp-includes/class-wp-customize-manager.php:WP_Customize_Manager::theme() | Gets the theme being customized. |
wp-includes/class-wp-customize-manager.php:WP_Customize_Manager::__construct() | Constructor. |
wp-includes/theme.php:check_theme_switched() | Checks if a theme has been changed and runs ‘after_switch_theme’ hook on the next WP load. |
wp-includes/theme.php:remove_theme_mods() | Removes theme modifications option for the active theme. |
wp-includes/theme.php:switch_theme() | Switches the theme. |
wp-includes/theme.php:validate_current_theme() | Checks that the active theme has the required files. |
wp-includes/theme.php:get_theme_mods() | Retrieves all theme modifications. |
wp-includes/deprecated.php:get_current_theme() | Retrieve current theme name. |
wp-includes/post.php:wp_insert_post() | Insert or update a post. |