WPDev.one
Core Function
View Source on Trac ↗

edit_term_link()

edit_term_link( mixed $link = '', mixed $before = '', mixed $after = '', mixed $term = null, mixed $display = true )

Displays or retrieves the edit term link with formatting.

Parameters 1 required

Name / Type Description
$link
string

Optional. Anchor text. If empty, default is 'Edit This'. Default empty.

$before
string

Optional. Display before edit link. Default empty.

$after
string

Optional. Display after edit link. Default empty.

(int

| WP_Term | null) $term Optional. Term ID or object. If null, the queried object will be inspected. Default null.

Required
$display
bool

Optional. Whether or not to echo the return. Default true.

Return Value

((string)
| void) HTML content.

Function Information

Since Version
3.1.0
Source File
wp-includes/link-template.php
Advertisement