过滤样本永久链接。
原型
apply_filters( 'get_sample_permalink', array $permalink, int $post_id, string $title, string $name, WP_Post $post )
参数
$permalink
(array)
包含样本永久链接的数组,其中包含帖子名称的占位符和帖子名称。
$post_id
(int)
帖子ID。
$title
(string)
帖子标题。
$name
(string)
帖子名称(slug)。
$post
(WP_Post)
发布对象。
源文件
路径:wp-admin/includes/post.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_sample_permalink/