Function: _wp_delete_tax_menu_item

_wp_delete_tax_menu_item( integer $object_id, integer $tt_id, string $taxonomy )

Serves as a callback for handling a menu item when its original object is deleted.

Shortcut: wdtmi

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$object_id integer

Optional. The ID of the original object being trashed. Default 0.

$tt_id integer

Term taxonomy ID. Unused.

$taxonomy string

Taxonomy slug.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.