edit_term_link( string $link = '', string $before = '', string $after = '', int|WP_Term|null $term = null, bool $display = true )
Displays or retrieves the edit term link with formatting.
Parameters
- $link
-
(Optional) Anchor text. If empty, default is 'Edit This'.
Default value: ''
- $before
-
(Optional) Display before edit link.
Default value: ''
- $after
-
(Optional) Display after edit link.
Default value: ''
- $term
-
(Optional) Term ID or object. If null, the queried object will be inspected.
Default value: null
- $display
-
(Optional) Whether or not to echo the return.
Default value: true
Return
(string|void) HTML content.
Source
File: wp-includes/link-template.php
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |