pre_gc_unique_post_slug
最后更新于:2021-11-27 21:24:23
apply_filters( ‘pre_gc_unique_post_slug’, string|null $override_slug, string $slug, int $post_ID, string $post_status, string $post_type, int $post_parent )
Filters the post slug before it is generated to be unique.
参数
- $override_slug
-
(string|null)
Short-circuit return value. - $slug
-
(string)
The desired slug (post_name). - $post_ID
-
(int)
Post ID. - $post_status
-
(string)
The post status. - $post_type
-
(string)
Post type. - $post_parent
-
(int)
Post parent ID.
源文件
文件: gc-includes/post.php