get_edit_post_link

过滤钩子


apply_filters( 'get_edit_post_link', $link, $post->ID, $context )
参数
  • (string)
    $link
    The edit link.
    Required:
  • (int)
    $post_id
    Post ID.
    Required:
  • (string)
    $context
    The link context. If set to ‘display’ then ampersands
    are encoded.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 1488
引入
2.3.0
弃用

Filters the post edit link.

return apply_filters( 'get_edit_post_link', $link, $post->ID, $context );