wpseek.com
WordPress开发者和主题制作者的搜索引擎



edit_post_link › WordPress过滤钩子

Since2.3.0
已弃用n/a
apply_filters( 'edit_post_link', $link, $post->ID, $text )
参数: (3)
  • (string) $link Anchor tag for the edit link.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
  • (string) $text Anchor text.
    Required: Yes
定义在:
文档:

Filters the post edit link anchor tag.





源码

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