get_edit_bookmark_link
Filter HookDescription
Filters the bookmark edit link.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1696 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$location
|
The edit link. |
int
|
$link_id
|
Bookmark ID. |
Usage Examples
Basic Usage
<?php
// Hook into get_edit_bookmark_link
add_filter('get_edit_bookmark_link', 'my_custom_filter', 10, 2);
function my_custom_filter($location, $link_id) {
// Your custom filtering logic here
return $location;
}
Source Code Context
wp-includes/link-template.php:1696
- How this hook is used in WordPress core
<?php
1691 * @since 2.7.0
1692 *
1693 * @param string $location The edit link.
1694 * @param int $link_id Bookmark ID.
1695 */
1696 return apply_filters( 'get_edit_bookmark_link', $location, $link->link_id );
1697 }
1698
1699 /**
1700 * Displays the edit bookmark link anchor content.
1701 *
PHP Documentation
<?php
/**
* Filters the bookmark edit link.
*
* @since 2.7.0
*
* @param string $location The edit link.
* @param int $link_id Bookmark ID.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.