edit_post_link filter-hook . WP 2.3.0
Filters the post edit link anchor tag.
Usage
add_filter( 'edit_post_link', 'filter_function_name_5891', 10, 3 ); function filter_function_name_5891( $link, $post_id, $text ){ // filter... return $link; }
- $link(string)
- Anchor tag for the edit link.
- $post_id(int)
- Post ID.
- $text(string)
- Anchor text.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
edit_post_link
wp-includes/link-template.php 1446
echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) . $after;