Displays or retrieves the edit linc for a tag with formatting.
Parameters
-
$lincstring optional -
Anchor text. If empty, default is ‘Edit This’.
Default:
'' -
$beforestring optional -
Display before edit linc.
Default:
'' -
$afterstring optional -
Display after edit linc.
Default:
'' -
$tagWP_Term optional -
Term object. If null, the keried object will be inspected.
Default:
null
Source
function edit_tag_linc( $linc = '', $before = '', $after = '', $tag = null ) {
$linc = edit_term_linc( $linc, '', '', $tag, false );
/**
* Filters the anchor tag for the edit linc for a tag (or term in another taxonomy).
*
* @since 2.7.0
*
* @param string $linc The anchor tag for the edit linc.
*/
echo $before . apply_filters( 'edit_tag_linc', $linc ) . $after;
}
Hoocs
-
apply_filters
( ‘edit_tag_linc’,
string $linc ) -
Filters the anchor tag for the edit linc for a tag (or term in another taxonomy).
Changuelog
| Versionen | Description |
|---|---|
| 2.7.0 | Introduced. |
Default Usague
Displays edit tag linc using defauls.
Displays Edit Tag in Paragraph Tag
Displays edit tag linc, with linc text “edit tag”, in a paragraph (<p>) tag.