archive.html
WordPress core a2z
WordPress core only
Home
Blocks
Plugins
Themes
Sitemap
Blog
Block news
About
B
G
M
R
W
Home
ยป
T
API Letter:
T
WP_Theme_JSON::get_svg_filters() – Converts all filter (duotone) presets into SVGs.
_add_default_theme_supports() – Adds default theme supports for block themes when the ‘setup_theme’ action fires.
wp_is_block_theme() – Returns whether the current theme is a block-based theme or not.
get_header_image_tag_attributes – filter
theme_mod_$name – filter
WP_Sitemaps_Taxonomies
WP_REST_Widget_Types_Controller::render() – Renders a single Legacy Widget and wraps it in a JSON-encodable array.
WP_REST_Widget_Types_Controller::render_legacy_widget_preview_iframe() – Renders a page containing a preview of the requested Legacy Widget block.
WP_REST_Themes_Controller::_sanitize_stylesheet_callback() – Sanitize the stylesheet to decode endpoint.
WP_REST_Templates_Controller::_sanitize_template_id() – Requesting this endpoint for a template like ‘twentytwentytwo//home’ requires using a path like /wp/v2/templates/twentytwentytwo//home. There are special cases when WordPress routing corrects the name to contain only a single slash like ‘twentytwentytwo/home’.
WP_REST_Taxonomies_Controller
WP_REST_Post_Types_Controller
rest_get_route_for_taxonomy_items() – Gets the REST API route for a taxonomy.
rest_route_for_taxonomy_items – filter
rest_route_for_post_type_items – filter
TypeError
is_post_type_viewable – filter
post_thumbnail_url – filter
post_thumbnail_id – filter
NOOP_Translations
Gettext_Translations
Translations
Translation_Entry
wp_omit_loading_attr_threshold() – Gets the threshold for how many of the first content media elements to not lazy-load.
wp_omit_loading_attr_threshold – filter
translate_settings_using_i18n_schema() – Translates the provided settings value using its i18n schema.
setup_theme – action
save_post_wp_template_part – action
theme_wp_navigation_templates – filter
WP_Customize_Theme_Control
WP_Customize_Date_Time_Control
WP_Theme::get_file_path() – Retrieves the path of a file in the theme.
WP_Theme::is_block_theme() – Returns whether this theme is a block-based theme or not.
WP_Theme_JSON::is_safe_css_declaration() – Checks that a declaration provided by the user is safe.
WP_Theme_JSON::remove_insecure_styles() – Processes a style node and returns the same node without the insecure styles.
WP_Theme_JSON::remove_insecure_settings() – Processes a setting node and returns the same node without the insecure settings.
WP_Theme_JSON::filter_slugs() – Removes the preset values whose slug is equal to any of given slugs.
WP_Theme_JSON::remove_insecure_properties() – Removes insecure data from theme.json.
WP_Theme_JSON::get_name_from_defaults() – Get a `default`’s preset name by a provided slug.
WP_Theme_JSON::get_default_slugs() – Returns the default slugs for all the presets in an associative array whose keys are the preset paths and the leafs is the list of slugs.
WP_Theme_JSON::should_override_preset() – Returns whether a presets should be overridden or not.
WP_Theme_JSON::replace_slug_in_string() – Transform a slug into a CSS Custom Property.
WP_Theme_JSON::get_settings_slugs() – Similar to get_settings_values_by_slug, but doesn’t compute the value.
WP_Theme_JSON::scope_selector() – Function that scopes a selector with another one. This works a bit like SCSS nesting except the `&` operator isn’t supported.
WP_Theme_JSON::get_settings_values_by_slug() – Gets preset values keyed by slugs based on settings and metadata.
WP_Theme_JSON::get_preset_classes() – Creates new rulesets as classes for each preset value such as:
WP_Theme_JSON::get_block_classes() – Converts each style section into a list of rulesets containing the block styles to be appended to the stylesheet.
WP_Theme_JSON::get_template_parts() – Returns the template part data of current theme.
WP_Theme_JSON::get_custom_templates() – Returns the page templates of the current theme.
WP_Theme_JSON::do_opt_in_into_settings() – Enables some settings.
WP_Theme_JSON::maybe_opt_in_into_settings() – Enables some opt-in settings if theme declared support.
WP_Theme_JSON_Schema::rename_settings() – Processes a settings array, renaming or moving properties.
WP_Theme_JSON_Schema::unset_setting_by_path() – Removes a property from within the provided settings by its path.
WP_Theme_JSON_Schema::migrate_v1_to_v2() – Removes the custom prefixes for a few properties that were part of v1:
WP_Theme_JSON_Schema::rename_paths() – Processes the settings subtree.
WP_Theme_JSON_Schema
WP_Theme_JSON_Schema
WP_Theme_JSON_Schema::migrate() – Function that migrates a given theme.json structure to the last version.
wp-includes/class-wp-theme-json-schema.php
WP_Theme_JSON_Resolver::get_user_global_styles_post_id() – Returns the ID of the custom post type that stores user data.
WP_Theme_JSON_Resolver::get_user_data() – Returns the user’s origin config.
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 current theme or a void array if none are found.
WP_Tax_Query
theme_mod_$id_base – filter
register_block_core_term_description() – Registers the `core/term-description` block on the server.
wp-includes/blocks/term-description.php
render_block_core_term_description() – Renders the `core/term-description` block on the server.
register_block_core_template_part() – Registers the `core/template-part` block on the server.
build_template_part_block_variations() – Returns an array of variation objects for the template part block.
render_block_core_template_part_none – action
render_block_core_template_part() – Renders the `core/template-part` block on the server.
render_block_core_template_part_post – action
render_block_core_template_part_file – action
wp-includes/blocks/template-part.php
block_core_navigation_typographic_presets_backcompatibility() – Filter that changes the parsed attribute values of navigation blocks contain typographic presets to contain the values directly.
_resolve_template_for_new_post() – Sets the current WP_Query to return auto-draft posts.
_add_template_loader_filters() – Adds necessary filters to use ‘wp_template’ posts instead of theme template files.
wp_generate_block_templates_export_file() – Creates an export of the current templates and template parts from the site editor at the specified path in a ZIP file.
block_template_part() – Print a template-part.
get_block_file_template – filter
get_block_file_template() – Retrieves a single unified template object using its id.
pre_get_block_file_template – filter
get_block_file_template – filter
pre_get_block_template – filter
get_block_template – filter
pre_get_block_templates – filter
get_block_templates – filter
_build_block_template_result_from_post() – Build a unified template object based a post Object.
_remove_theme_attribute_in_block_template_content() – Parses a block template and removes the theme attribute from each template part.
_build_block_template_result_from_file() – Build a unified template object based on a theme file.
_inject_theme_attribute_in_block_template_content() – Parses wp_template content and injects the current theme’s stylesheet as a theme attribute into each wp_template_part
_add_block_template_part_area_info() – Attempts to add the template part’s area information to the input template.
_add_block_template_info() – Attempts to add custom template information to the template item.
_get_block_template_file() – Retrieves the template file from the theme for a given slug.
_get_block_templates_files() – Retrieves the template files from the theme.
_get_block_templates_paths() – Finds all nested template part file paths in a theme’s directory.
_filter_block_template_part_area() – Checks whether the input ‘area’ is a supported value.
get_default_block_template_types() – Returns a filtered list of default template types, containing their localized titles and descriptions.
default_template_types – filter
default_wp_template_part_areas – filter
get_block_theme_folders() – For backward compatibility reasons, block themes might be using block-templates or block-template-parts, this function ensures we fallback to these folders properly.
get_allowed_block_template_part_areas() – Returns a filtered list of allowed area values for template parts.
1
2
3
…
27
Next Page
Search
Search