archive.html
WordPress core a2z
WordPress core only
Home
Blocks
Plugins
Themes
Sitemap
Blog
Block news
About
B
G
M
R
W
Home
»
_
API Letter:
_
_upgrade_core_deactivate_incompatible_plugins() –
_WP_Dependency
_wp_build_title_and_description_for_taxonomy_block_template() – Builds the title and description of a taxonomy-specific template based on the underlying entity referenced.
_wp_build_title_and_description_for_single_post_type_block_template() – Builds the title and description of a post-specific template based on the underlying referenced post.
_wp_theme_json_webfonts_handler() – Runs the theme.json webfonts handler.
_resolve_home_block_template() – Returns the correct template for the site’s home page.
_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:
_register_remote_theme_patterns() – Registers patterns from Pattern Directory provided by a theme’s `theme.json` file.
_wp_get_iframed_editor_assets() – Collect the block editor assets that need to be loaded into the editor’s iframe.
_add_default_theme_supports() – Adds default theme supports for block themes when the ‘setup_theme’ action fires.
_wp_normalize_relative_css_links() – Make URLs relative to the WordPress installation.
_wp_kses_allow_pdf_objects() – Helper function to check if this is a safe PDF URL.
_delete_custom_logo_on_remove_site_logo() – Removes the custom_logo theme-mod when the site_logo option gets deleted.
_wp_multiple_block_styles() – Allows multiple block styles.
_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.
– – filter
_build_block_template_result_from_post() – Builds 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() – Builds a unified template object based on a theme file.
_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
_add_block_template_part_area_info() – Attempts to add the template part’s area information to the input template.
_flatten_blocks() – Returns an array containing the references of the passed blocks and their inner blocks.
_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.
_filter_block_template_part_area() – Checks whether the input ‘area’ is a supported value.
_get_block_templates_paths() – Finds all nested template part file paths in a theme’s directory.
_wp_tinycolor_bound_alpha() – Direct port of tinycolor’s boundAlpha function to maintain consistency with how tinycolor works.
_load_remote_featured_patterns() – Register `Featured` (category) patterns from wordpress.org/patterns.
_add_plugin_file_editor_to_tools() – Adds the ‘Plugin File Editor’ menu item after the ‘Themes File Editor’ in Tools for block themes.
_upgrade_590_force_deactivate_incompatible_plugins() –
_disable_content_editor_for_navigation_post_type() – This callback disables the content editor for wp_navigation type posts.
_enable_content_editor_for_navigation_post_type() – This callback enables content editor for wp_navigation type posts.
_disable_block_editor_for_navigation_post_type() – Disables block editor for wp_navigation type posts so they can be managed via the UI.
_wp_to_kebab_case() – This function is trying to replicate what lodash’s kebabCase (JS library) does in the client.
_wp_array_set() – Sets an array in depth based on a path of keys.
_wp_check_alternate_file_names() – Helper function to test if each of an array of file names could conflict with existing files.
_WP_Editors
_delete_site_logo_on_remove_custom_logo_on_setup_theme() – Hooks `_delete_site_logo_on_remove_custom_logo` in `update_option_theme_mods_$theme`.
_delete_site_logo_on_remove_custom_logo() – Deletes the site_logo when the custom_logo theme mod is removed.
_delete_site_logo_on_remove_theme_mods() – Deletes the site logo when all theme mods are being removed.
_override_custom_logo_theme_mod() – Overrides the custom logo with a site logo, if the option is set.
_sync_custom_logo_to_site_logo() – Updates the site_logo option when the custom_logo theme-mod gets updated.
_excerpt_render_inner_blocks() – Render inner blocks from the allowed wrapper blocks for generating an excerpt.
_strip_template_file_suffix() – Strips .php or .html suffix from template file names.
_block_template_render_without_post_block_context() – Removes post details from block context when rendering a block template.
_block_template_viewport_meta_tag() – Renders a ‘viewport’ meta tag.
_block_template_render_title_tag() – Displays title tag with content, regardless of whether theme has title-tag support.
_build_template_result_from_post() – Build a unified template object based a post Object.
_load_remote_block_patterns() – Register Core’s official patterns from wordpress.org/patterns.
_upgrade_580_force_deactivate_incompatible_plugins() –
_wp_block_editor_posts_page_notice() – Outputs a notice when editing the page for posts in the block editor (internal use only).
_wp_cron() – Run scheduled callbacks or spawn cron for all scheduled events.
_wp_post_revision_field_$field – filter
_wp_array_get() – Accesses an array in depth based on a path of keys.
_wp_register_meta_args_allowed_list() – Filters out `register_meta()` args based on an allowed list.
_wp_batch_update_comment_type() – Updates the comment type for a batch of comments.
_wp_check_for_scheduled_update_comment_type() – In order to avoid the _wp_batch_update_comment_type() job being accidentally removed, check that it’s still scheduled while we haven’t finished updating comment types.
_register_core_block_patterns_and_categories() – Registers the core block patterns and categories.
_customizer_mobile_viewport_meta() – Adds viewport meta for mobile in Customizer.
_wp_check_existing_file_names() – Helper function to check if a file name could match an existing image sub-size file name.
_wp_remove_unregistered_widgets() – Compares a list of sidebars with their widgets against an allowed list.
_get_widget_id_base() – Retrieves the widget ID base value.
_wp_sidebars_changed() – Handle sidebars config after theme change
_register_widget_update_callback() – Registers the update callback for a widget.
_register_widget_form_callback() – Registers the form callback for a widget.
_wp_privacy_account_request_confirmed_message() – Return request confirmation message HTML.
_wp_privacy_send_erasure_fulfillment_notification() – Notifies the user when their erasure request is fulfilled.
_wp_privacy_send_request_confirmation_notification() – Notifies the site administrator via email when a request is confirmed.
_wp_privacy_account_request_confirmed() – Update log when privacy request is confirmed.
_wp_privacy_action_request_types() – Get all user privacy request types.
_wp_get_current_user() – Retrieves the current user object.
_wp_get_user_contactmethods() – The old private function for setting up user contact methods.
_get_additional_user_keys() – Returns a list of meta keys to be (maybe) populated in wp_update_user().
_maybe_update_themes() – Check themes versions only after a duration of time.
_maybe_update_core() – Determines whether core should be updated.
_maybe_update_plugins() – Check the last time plugins were run before checking plugin versions.
_wp_keep_alive_customize_changeset_dependent_auto_drafts() – Make sure that auto-draft posts get their post_date bumped or status changed to draft to prevent premature garbage-collection.
_wp_customize_changeset_filter_insert_post_data() – Filters changeset post data upon insert to ensure post_name is intact.
_wp_customize_loader_settings() – Adds settings for the customize-loader script.
_wp_customize_include() – Includes and instantiates the WP_Customize_Manager class.
_wp_customize_publish_changeset() – Publishes a snapshot’s changes.
_delete_attachment_theme_mod() – Checks an attachment being deleted to see if it’s a header or background image.
_remove_theme_support() – Do not use. Removes theme support internally without knowledge of those not used by themes directly.
_custom_logo_header_styles() – Adds CSS to hide header text for custom logo, based on Customizer setting.
_custom_header_background_just_in_time() – Registers the internal custom header and background routines.
_custom_background_cb() – Default custom background callback.
_get_random_header_data() – Gets random header image data from registered images in theme.
_wp_check_split_terms_in_menus() – Check menu items when a term gets split to see if any of them need to be updated.
_wp_check_split_nav_menu_terms() – If the term being split is a nav_menu, change associations.
_wp_check_for_scheduled_split_terms() – In order to avoid the _wp_batch_split_terms() job being accidentally removed, check that it’s still scheduled while we haven’t finished splitting terms.
_wp_check_split_default_terms() – Check default categories when a term gets split to see if any of them need to be updated.
_wp_batch_split_terms() – Splits a batch of shared taxonomy terms.
_split_shared_term() – Create a new term for a term_taxonomy item that currently shares its term with another term_taxonomy.
_update_generic_term_count() – Will update term count based on number of objects.
_prime_term_caches() – Adds any terms from the given IDs to the cache that do not already exist in cache.
_update_post_term_count() – Will update term count based on object types of the current taxonomy.
_get_term_children() – Get the subset of $terms that are descendants of $term_id.
_pad_term_counts() – Add count of children to parent count.
_get_term_hierarchy() – Retrieves children of taxonomy as Term IDs.
_print_styles() – Print styles (internal use only)
1
2
3
4
Next Page
Search
Search