edit_tag_link
Filter HookDescription
Filters the anchor tag for the edit link for a tag (or term in another taxonomy).Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1065 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The anchor tag for the edit link. |
Usage Examples
Basic Usage
<?php
// Hook into edit_tag_link
add_filter('edit_tag_link', 'my_custom_filter', 10, 1);
function my_custom_filter($link) {
// Your custom filtering logic here
return $link;
}
Source Code Context
wp-includes/link-template.php:1065
- How this hook is used in WordPress core
<?php
1060 *
1061 * @since 2.7.0
1062 *
1063 * @param string $link The anchor tag for the edit link.
1064 */
1065 echo $before . apply_filters( 'edit_tag_link', $link ) . $after;
1066 }
1067
1068 /**
1069 * Retrieves the URL for editing a given term.
1070 *
PHP Documentation
<?php
/**
* Filters the anchor tag for the edit link for a tag (or term in another taxonomy).
*
* @since 2.7.0
*
* @param string $link The anchor tag for the edit link.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.