get_edit_tag_link
Filter HookDescription
Filters 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 | 1041 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The term edit link. |
Usage Examples
Basic Usage
<?php
// Hook into get_edit_tag_link
add_filter('get_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:1041
- How this hook is used in WordPress core
<?php
1036 *
1037 * @since 2.7.0
1038 *
1039 * @param string $link The term edit link.
1040 */
1041 return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag, $taxonomy ) );
1042 }
1043
1044 /**
1045 * Displays or retrieves the edit link for a tag with formatting.
1046 *
PHP Documentation
<?php
/**
* Filters the edit link for a tag (or term in another taxonomy).
*
* @since 2.7.0
*
* @param string $link The term 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.