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



get_sample_permalink › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post )
参数: (5)
  • () permalink { Array containing the sample permalink with placeholder for the post name, and the post name. @type string $0 The permalink with placeholder for the post name. @type string $1 The post name. }
    Required: Yes
  • () post_id Post ID.
    Required: Yes
  • () title Post title.
    Required: Yes
  • () name Post name (slug).
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

Filters the sample permalink.





源码

return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );