wpseek.com
WordPress开发者和主题制作者的搜索引擎
pre_wp_unique_post_slug › WordPress过滤钩子
Since5.1.0
已弃用n/a
› apply_filters( 'pre_wp_unique_post_slug', null, $slug, $post_id, $post_status, $post_type, $post_parent )
| 参数: (6) |
|
| 定义在: |
|
| 文档: |
Filters the post slug before it is generated to be unique.
Returning a non-null value will short-circuit the unique slug generation, returning the passed value instead.Related Functions: wp_unique_post_slug, wp_unique_term_slug, wp_filter_wp_template_unique_post_slug, _truncate_post_slug, previous_post_link, previous_posts