
如何解决MAMP本地开发环境“Localhost Refused to Connect”错误
函数/钩子名 | 描述 |
---|---|
wp_is_theme_directory_ignored (函数) | wp_is_theme_directory_ignored: 这个函数用来检查给定的主题目录是否在WordPress中被忽略。它接收一个主题目录名称作为参数,如果该目录被忽略,则返回true,否则返回 |
wp_generate_block_templates_export_file (函数) | wp_generate_block_templates_export_file: 这个函数用来为WordPress中的块模板生成一个导出文件。它接收一个块模板数组作为参数,并返回XML文件,该文件可用 |
get_template_hierarchy (函数) | get_template_hierarchy: 这个函数检索WordPress用来显示一个页面的模板文件的列表。它需要一个参数:作为起点使用的模板的名称。它返回一个模板文件名的数组。 |
get_default_block_template_types (函数) | get_default_block_template_types:该函数返回块编辑器中可用的默认块模板的数组。 |
get_block_theme_folders (函数) | get_block_theme_folders:此函数返回一个目录数组,其中可以存储特定主题的块模板。它不接受任何参数。 |
get_block_templates (函数) | get_block_templates:此函数返回一个块模板数组,每个模板包含一个名称和模板属性。它不接受任何参数。 |
get_block_template (函数) | get_block_template:此函数返回指定块类型的模板。它接受一个参数:$block_type,它是块类型的名称。 |
get_block_file_template (函数) | get_block_file_template:此函数返回指定块类型的模板文件。它接受一个参数:$block_type,它是块类型的名称。 |
get_allowed_block_template_part_areas (函数) | get_allowed_block_template_part_areas: 这个函数返回一个允许块的模板部分区域的数组。这些区域是由主题定义的,它们允许创建可以在多个块中重复使用的块模板。 |
block_template_part (函数) | block_template_part: 这个函数类似于WordPress中的get_template_part函数,但用于加载特定于块的模板: 该函数需要两个参数:区块类型(例如”core/para |
block_header_area (函数) | block_header_area。这个钩子允许插件和主题将内容添加到块编辑器的标题区域。该钩子位于wp-admin/edit-form-blocks.php文件中。 |
block_footer_area (函数) | block_footer_area: 这个钩子允许插件和主题将内容添加到块编辑器的页脚区域。该钩子位于wp-admin/edit-form-blocks.php文件中。 |
_wp_build_title_and_description_for_taxonomy_block_template (函数) | _wp_build_title_and_description_for_taxonomy_block_template: 该函数用于为分类法块模板建立标题和描述。它接收一个分类法,并返回一个包含标题和 |
_wp_build_title_and_description_for_single_post_type_block_template (函数) | _wp_build_title_and_description_for_single_post_type_block_template: 这个函数用来为一个单一的文章类型块模板建立标题和描述。它接收一 |
_remove_theme_attribute_in_block_template_content (函数) | _remove_theme_attribute_in_block_template_content: 这个函数用于从块模板内容中删除主题属性: 当把区块从一个主题迁移到另一个主题时,这很有用。 |
_inject_theme_attribute_in_block_template_content (函数) | inject_theme_attribute_in_block_template_content是一个WordPress函数,用于将主题属性注入到块模板的内容中: 这是通过解析区块模板的HTML内容并 |
_get_block_templates_paths (函数) | _get_block_templates_paths: 这是一个用来获取特定主题的所有块模板路径的数组的函数。它接收一个主题目录路径作为参数,并返回一个块模板路径的数组。 |
_get_block_templates_files (函数) | _get_block_templates_files: 这是一个用于获取特定文章类型的所有块模板文件的数组的函数。它接收一个文章类型的名称作为参数,并返回一个块模板文件的数组。 |
_get_block_template_file (函数) | _get_block_template_file: 这是一个用来获取特定块模板文件路径的函数。它接收一个模板名称作为参数,并返回块模板文件的路径。 |
_flatten_blocks (函数) | _flatten_blocks: 这是一个用于WordPress块编辑器的函数,用于扁平化嵌套的块。它接收一个块对象作为参数,并返回一个扁平化的块对象的数组,所有嵌套的块都在根层。 |
_filter_block_template_part_area (函数) | filter_block_template_part_area: 这个钩子用于过滤块模板部分的区域。这允许开发者修改块模板部分的区域并添加自定义逻辑。 |
_build_block_template_result_from_post (函数) | _build_block_template_result_from_post: 这个函数用于从一个给定的文章生成一个块模板结果。它接受一个post对象和一个可选的$args数组,并返回一个包含块模板数 |
_build_block_template_result_from_file (函数) | _build_block_template_result_from_file: 这个函数用来从一个文件中建立一个块模板的结果。它用于从文件中加载一个块模板,并为渲染做准备。 |
_add_block_template_part_area_info (函数) | _add_block_template_part_area_info:该函数用于将块模板的部分区域信息添加到一个数组中。块模板是一组预先设计好的块,可以作为创建新页面或文章的起点。块模板部分区域是块模 |
_add_block_template_info (函数) | add_block_template_info: 这个动作用于添加块模板的信息,如名称、类别和描述。这些信息被块编辑器用来在模板选择器中显示该模板。 |
WP_TEMPLATE_PART_AREA_UNCATEGORIZED (常量) | WP_TEMPLATE_PART_AREA_UNCATEGORIZED:表示未分类的模板部分区域。 |
WP_TEMPLATE_PART_AREA_SIDEBAR (常量) | WP_TEMPLATE_PART_AREA_SIDEBAR:表示WordPress页面的侧边栏区域。 |
WP_TEMPLATE_PART_AREA_HEADER (常量) | WP_TEMPLATE_PART_AREA_HEADER:表示WordPress页面的页头区域。 |
WP_TEMPLATE_PART_AREA_FOOTER (常量) | WP_TEMPLATE_PART_AREA_FOOTER:表示WordPress页面的页脚区域。 |
get_block_templates (过滤钩子) | get_block_templates: 这个函数检索用于渲染一个块类型的所有模板的路径。该函数将块类型的名称作为参数,并返回一个模板的路径数组。 |
get_block_template (过滤钩子) | get_block_template: 这个函数检索用于渲染块类型的模板的路径。该函数将块类型的名称作为参数,并返回模板的路径。 |
get_block_file_template (过滤钩子) | get_block_file_template: 这个函数检索用于渲染一个块类型的文件模板的路径。该函数将块类型名称作为一个参数,并返回文件的路径。 |
pre_get_block_file_template (过滤钩子) | 在发现主题文件之前,对块状模板对象进行过滤。 返回一个非空值以绕过WordPress主题文件的发现。 |
default_template_types (过滤钩子) | Filters the list of template types. |
default_wp_template_part_areas (过滤钩子) | Filters the list of allowed template part area values. |
pre_get_block_template (过滤钩子) | Filters the block template object before the query takes place. Return a non-null value to bypass th |
pre_get_block_templates (过滤钩子) | Filters the block templates array before the query takes place. Return a non-null value to bypass th |