Filter hook 'edit_bookmark_link'

in WP Core File wp-includes/link-template.php at line 1730

View Source

edit_bookmark_link

Filter Hook
Description
Filters the bookmark edit link anchor tag.

Hook Information

File Location wp-includes/link-template.php View on GitHub
Hook Type Filter
Line Number 1730

Hook Parameters

Type Name Description
string $link Anchor tag for the edit link.
int $link_id Bookmark ID.

Usage Examples

Basic Usage
<?php
// Hook into edit_bookmark_link
add_filter('edit_bookmark_link', 'my_custom_filter', 10, 2);

function my_custom_filter($link, $link_id) {
    // Your custom filtering logic here
    return $link;
}

Source Code Context

wp-includes/link-template.php:1730 - How this hook is used in WordPress core
<?php
1725  	 * @since 2.7.0
1726  	 *
1727  	 * @param string $link    Anchor tag for the edit link.
1728  	 * @param int    $link_id Bookmark ID.
1729  	 */
1730  	echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after;
1731  }
1732  
1733  /**
1734   * Retrieves the edit user link.
1735   *

PHP Documentation

<?php
/**
	 * Filters the bookmark edit link anchor tag.
	 *
	 * @since 2.7.0
	 *
	 * @param string $link    Anchor tag for 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.