page_template_dropdown()
page_template_dropdown( string $default = ”, string $post_type = ‘page’ )
打印页面模板下拉列表的选项HTML元素。
Print out option HTML elements for the page templates drop-down.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$default | (string) | 可选 | 模板文件名。 |
$post_type | (string) | 可选 | 获取模板的文章类型。默认“post”。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.7.0 | wp-admin/includes/template.php:869 | 2 | 4 |
page_template_dropdown() 为WP2原创文章,链接:https://www.wp2.cn/functions/page_template_dropdown/