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



the_permalink › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'the_permalink', get_permalink( $post )
参数: (2)
  • () permalink The permalink for the current post.
    Required: Yes
  • () post Post ID, WP_Post object, or 0. Default 0.
    Required: Yes
定义在:
文档:

Filters the display of the permalink for the current post.





源码

echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );