When user starts typing something into tag input, JavaScript makes request to admin-ajax.php
with action
set to ajax-tag-search
to receive list of suggestions (if any).
In that file that action is recognized as belonging to core and wp_ajax_tag_search()
function is added to dynamically generated wp_ajax_ajax-tag-search
hook, which fires almost immediately after that.
Looking at source of the function it is rather inflexible (no filters or anything), but since it echoes results (new line delimited list of suggestions) and dies – you don’t even need to bother with it.
Just make your own version of function for tag suggestion logic and hook it at earlier priority (also dying at end so that native one is never reached).
Related Posts:
- Custom taxonomy admin description
- Change admin bar to default:off
- Styling Shortcodes in Visual Editor
- How to add filter in “Comments” at the admin panel?
- Taxonomy/category hierarchy lost when editing posts [closed]
- How do I set up a webhook?
- Adding custom Javascript to the head tag in Admin
- How to retain HTML5 Attributes on Markup
- Gallery Settings Change available Columns
- Change post title during post saving process
- How to add_filter/action to comment out CSS generated by admin function?
- Custom taxonomy admin page
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- What is the optimal way to filter out subpages from admin?
- user-new.php less detailed after WP3.1; how to revert?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Adding text in more than one language (at the same time)
- Admin Taxonomy Terms – Orderby Term Field
- Filtering *out* a taxonomy from the admin post list
- Admin search post meta
- Redirect to another page using contact form 7? [closed]
- WordPress 3.1’s admin bar disappears only leaving its 28 px padding (in ubuntu)!
- Hide post title input for all roles except admin
- Filter WooCommerce Orders
- Weird jquery problem when upgrade to WordPress 3.1
- How to create custom backend admin menu in different languages?
- Post filter with multiple checkbox taxonomy terms
- Admin view: filter posts by whether they have specific taxonomy attached
- How to retain HTML5 Attributes on Markup
- Can I show the tag admin interface on a post when logged in as an admin?
- Remove “minor-publishing” div from Publish admin metabox
- Background image in login showing in admin area
- What are the standard admin CSS id/class tags?
- how to know if admin is in edit page or post [duplicate]
- How to create an API for my plugin?
- Set Default Admin Colour For All Users
- How to use more than 256MB of memory in the admin?
- Localization: I want the backend: english and frontend in defined language
- Settings API – easiest way of validating checkboxes?
- Uploading files in admin panel?
- Redirect Admin User in Dashboard
- Read only capability for custom post in admin area
- How can ‘admin_email’ be set?
- How to change WordPress default strings?
- Remove ability to access certain admin menus
- Gutenberg “Add Block” button is not active (greyed out), cannot add new blocks
- Conditional check for front-end which includes ajax
- Hide update messages from non-admin users?
- Add a custom column in users list page
- Blocking Administrative Access to Authors and Subcribers?
- How to display only logged in user’s post comments in comments area
- Different color admin bars for dev, staging and production
- WordPress manage users as non admin
- Refreshing collections in the admin media manager
- Custom Admin Menu Order
- Is there a way to hook into the update-core page for custom messages?
- WordPress as thesaurus/dictionnary: what approach?
- How to solve 500 Error on WordPress Admin Dashboard due to time-out on getdirsize
- Enabling users to replace site title (text) with a image logo (but keeping the text if there isn’t any image)?
- Custom Thickbox Broken on Dashboard Page?
- Categorizing Page Templates
- Set terms in a custom post
- My WordPress Admin looks messed up when I edit posts or pages
- Plugin admin panel JavaScript Broken
- Force Contributors to add Tags via edit-tags.php
- How can I replace content in the WP Admin area before an admin page is rendered?
- Edit Auto Update Admin Notification
- Unable to Access WP Admin or Login buttons after Migration
- Admin – create custom post status and display above table
- How do I correctly transfer my site from one domain to another?
- Add sub menu page in your plugin
- Unable to get to the admin panel
- How to find a spam link?
- How to change all “Post” texts in dahboard into “Article”?
- Simplify the admin end
- Directly editing content on webpage, is it possible?
- Create page template via functions.php?
- How to disable Media Library uploads for non-Admin users?
- Page can’t hand request – HTTP ERROR 500 – when updating something
- Admin user lacks admin permissions after hack and can’t reinstate
- How to change the User name and Password of admin account
- Redirect public site to another one but allow administrators to access the old site
- Display an image of selected template in admin to aid user when using complex templates
- Passing state from child component to parent component in a Gutenberg Sidebar
- Is there any filter to add a custom attribute to the tag in admin panel?
- I can’t enter the control panel of my wordpress site after channing the URL to https://
- Wrap WordPress Login Form in custom Div
- Help Adding filter to Add Media button for custom post type
- Only seems to be displaying one child when there are supposed to be multiple
- How to change the title attribute for the WP logo image on wp-login.php
- How to add a post with new Taxonomy without assigning to default category?
- site admin for subscribers
- WordPress gallery image link gives 404 when not logged in
- Delete Term via edit-tags.php
- Custom Div with links on Admin Bar
- WordPress admin loads erratically “connection reset by peer”
- Show parent-child relationship for categories in the wordpress admin
- Can’t access my wp admin: captcha images invisible, gives me error message
- You do not have permission to access this document on form submit
- CSS Styles specific to Admin Sidebar not loading