get_sample_permalink_html()
get_sample_permalink_html( int $id, string $new_title = null, string $new_slug = null )
返回示例permalink slug编辑器的HTML。
Returns the HTML of the sample permalink slug editor.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$id | (int) | 必需 | Post ID或Post对象。 |
$new_title | (string) | 可选 | 新头衔。 |
$new_slug | (string) | 可选 | 新弹头。 |
返回(Return)
(string)示例permalink slug编辑器的HTML。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/post.php:1418 | 1 function | 11 |
笔记(Notes)
如果在您的PostType上启用了Gutenberg,则此筛选器将不再工作。
get_sample_permalink_html() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_sample_permalink_html/