WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 3 years ago

#1506 closed enhancement (fixed)

Add hook type "action" or "filter" to archive and search result pages

Reported by: keesiemeijer Owned by: coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch
Cc:

Description

In the search results, or archive pages, the description of hooks include the word "Hook:". To better differentiate between the two hook types the word "filter", or "action" should be included.

See this link https://developer.wordpress.org/?s=get&post_type[]=wp-parser-hook

Attachments (2)

1506.patch (1.3 KB) - added by keesiemeijer 4 years ago.
Add hook type with get_the_excerpt filter
1506.1.patch (705 bytes) - added by keesiemeijer 3 years ago.
Add filter and action reference hooks

Download all attachments as: .zip

Change History (7)

@keesiemeijer
4 years ago

Add hook type with get_the_excerpt filter

#1 @keesiemeijer
4 years ago

  • Keywords has-patch added

#2 @coffee2code
4 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 2290:

developer.wordpress.org: Add hook type "action" or "filter" to archive and search result pages.

  • Prepend "Action Hook" or "Filter Hook" to archive and search results, as appropriate.
  • Add get_hook_type() to return type of hook.

Props keesiemeijer.
Fixes #1506.

@keesiemeijer
3 years ago

Add filter and action reference hooks

#3 @keesiemeijer
3 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Patch 1506.1 adds the types action_reference and filter_reference returned by the get_hook_type() function.

Fixes missing hook types for do_action_ref_array and apply_filters_ref_array

#5 @drewapicture
3 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 2799:

developer.wordpress.org: Add support for the 'filter_reference' and 'action_reference' hook types when displaying the "Action|Filter Hook" prefix on archive and search pages.

  • See [2290] for where the prefix text was introduced for the 'action' and 'filter' hook types.

Props keesiemeijer.
Fixes #1506.

Note: See TracTickets for help on using tickets.