[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/js/ -> tags.js (summary)

Contains logic for deleting and adding tags. For deleting tags it makes a request to the server to delete the tag. For adding tags it makes a request to the server to add the tag.

File Size: 251 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  resetRowAfterFailure()
  updateTableNavCount()

Functions
Functions that are not part of a class:

resetRowAfterFailure( tr )   X-Ref
Restores the original UI state of a table row after an AJAX failure.

return: {void}
param: {jQuery} tr The table row to reset.

updateTableNavCount( action )   X-Ref
Updates the item count and table navigation after a tag is added or removed.

Tags are added and removed client-side, but the item count, the `.tablenav`
regions, the search box, and the empty-state row are otherwise only
reconciled by PHP on a full page reload. This keeps them in sync.

return: {void}
param: {string} [action] Pass 'add' when a tag was added. Any other value,



Generated : Mon Jul 27 08:20:18 2026 Cross-referenced by PHPXref