get_edit_term_link
Filter HookDescription
Filters the edit link for a term.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1121 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$location
|
The edit link. |
int
|
$term_id
|
Term ID. |
string
|
$taxonomy
|
Taxonomy name. |
string
|
$object_type
|
The object type. |
Usage Examples
Basic Usage
<?php
// Hook into get_edit_term_link
add_filter('get_edit_term_link', 'my_custom_filter', 10, 4);
function my_custom_filter($location, $term_id, $taxonomy, $object_type) {
// Your custom filtering logic here
return $location;
}
Source Code Context
wp-includes/link-template.php:1121
- How this hook is used in WordPress core
<?php
1116 * @param string $location The edit link.
1117 * @param int $term_id Term ID.
1118 * @param string $taxonomy Taxonomy name.
1119 * @param string $object_type The object type.
1120 */
1121 return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type );
1122 }
1123
1124 /**
1125 * Displays or retrieves the edit term link with formatting.
1126 *
PHP Documentation
<?php
/**
* Filters the edit link for a term.
*
* @since 3.1.0
*
* @param string $location The edit link.
* @param int $term_id Term ID.
* @param string $taxonomy Taxonomy name.
* @param string $object_type The object type.
*/
Quick Info
- Hook Type: Filter
- Parameters: 4
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.