edit_post_link

过滤钩子


apply_filters( 'edit_post_link', $link, $post->ID, $text )
参数
  • (string)
    $link
    Anchor tag for the edit link.
    Required:
  • (int)
    $post_id
    Post ID.
    Required:
  • (string)
    $text
    Anchor text.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 1531
引入
2.3.0
弃用

Filters the post edit link anchor tag.

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