Skip to content

Latest commit

 

History

History
70 lines (39 loc) · 2.15 KB

File metadata and controls

70 lines (39 loc) · 2.15 KB

WordPress Hooks Data Issues

This document lists known data quality issues in the hooks JSON files.

Duplicate Actions

  • manage_{$this->screen->id}_custom_column

Duplicate Filters

No duplicate filters.

Missing @since Tags

No hooks with missing @since tags.

Empty Descriptions

No hooks with empty descriptions.

Empty Variables

Hooks with @param tags that have an empty variable name.

No hooks with empty variables.

Invalid Variable Names

Hooks with @param tags where the variable is not a valid PHP variable name.

No hooks with invalid variable names.

Empty Param Descriptions

Hooks with @param tags that have an empty description.

  • block_core_navigation_render_inner_blocks — $inner_blocks (wp-includes/blocks/navigation.php)
  • render_block_core_navigation_link_allowed_post_status — $attributes (wp-includes/blocks/navigation-link.php)
  • render_block_core_navigation_link_allowed_post_status — $block (wp-includes/blocks/navigation-link.php)
  • render_block_core_navigation_link_allowed_post_status — $post_status (wp-includes/blocks/navigation-link.php)
  • should_load_remote_block_patterns — $should_load_remote (wp-includes/block-patterns.php)
  • the_weekday — $the_weekday (wp-includes/general-template.php)

Missing Original Since

Hooks where all @since tags have descriptions, indicating the original version is missing.

  • {$action}_prefilter (wp-admin/includes/file.php)
  • password_reset_key_expired (wp-includes/user.php)

Param Count Mismatches

Hooks where the number of @param tags does not match the args count.

  • wp_default_autoload_value — args: 4, params: 3 (wp-includes/option.php)
  • wp_next_scheduled — args: 4, params: 3 (wp-includes/cron.php)

Empty Param Types

Hooks with @param tags that have empty or missing type arrays.

No hooks with empty param types.

Invalid Param Types

Hooks with @param tags where types are not valid PHP docblock types.

  • block_editor_rest_api_preload_paths — $preload_paths: (string (wp-includes/block-editor.php)
  • block_editor_rest_api_preload_paths — $preload_paths: string[])[] (wp-includes/block-editor.php)