Make WordPress Core

Opened 12 years ago

Closed 6 years ago

#13005 closed enhancement (fixed)

Add plugin hook for ajax-tag-search

Reported by: jimmcq Owned by: westi
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: administration Cc:


I would like to have a new plugin action hook added in the ajax-tag-search section of wp-admin/admin-ajax.php

Attachments (1)

admin-ajax.php.diff (538 bytes) - added by jimmcq 11 years ago.

Download all attachments as: .zip

Change History (8)

#1 @jimmcq
12 years ago

  • Priority changed from normal to high
  • Type changed from feature request to enhancement

In case it wasn't entirely clear, the goal is to be able to modify the results (suggested tag list) that gets sent back to the ajax call.

Would it make sense to insert something right between to $results=$wpdb->get_col line and the echo join($results,"\n") line?

#2 @jimmcq
11 years ago

  • Keywords has-patch needs-testing added; plugin hook removed

#3 @westi
11 years ago

  • Component changed from Plugins to Administration
  • Milestone changed from Unassigned to Future Release
  • Status changed from new to accepted

This feels like a good thing to do.

I wonder if we shouldn't be using an API to get those rather than having a hardcoded query there.

Moving into Future Release for now but this doesn't mean it will get forgotten :-)

#4 @bedex78
8 years ago

I just came across a need for this (http://wordpress.stackexchange.com/q/95868/1044). bbpress seems to have this functionality (http://bbpress.trac.wordpress.org/attachment/ticket/459/459.3.diff). Maybe we can learn from it?

Last edited 8 years ago by bedex78 (previous) (diff)

#5 @SergeyBiryukov
8 years ago

  • Priority changed from high to normal

Related: #13580

#6 @nacin
8 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added

#7 @wonderboymusic
6 years ago

  • Keywords has-patch needs-testing removed
  • Milestone changed from Future Release to 4.4
  • Resolution set to fixed
  • Status changed from accepted to closed

[25452] made this use get_terms(), which has hooks.

Note: See TracTickets for help on using tickets.