A WordPress-centric search engine for devs and theme authors



edit_post_link ›

Since2.3.0
Deprecatedn/a
apply_filters( 'edit_post_link', $link, $post->ID, $text )
Parameters: (3)
  • (string) $link Anchor tag for the edit link.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
  • (string) $text Anchor text.
    Required: Yes
Defined at:
Codex:

Filters the post edit link anchor tag.





Source

echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) . $after;