do_settings_fields()输出所有的设置项目

目录

描述

Prints out the settings fields for a particular settings section.

do_settings_fields() 描述

用法

<?php do_settings_fields$page$section ); ?>

do_settings_fields() 用法

参数

$page

(string) (必填) Slug title of the admin page whose settings fields you want to show. This should match the page name used in add_settings_section().

默认值: None

$section

(string) (必填) Slug title of the settings section whose fields you want to show. This should match the section ID used in add_settings_section().

默认值: None

do_settings_fields() 参数

注意

Should normally be called by do_settings_sections() rather than directly.

do_settings_fields() 注意

源文件

do_settings_fields() 函数的代码位于 wp-admin/includes/template.php.

do_settings_fields() 源文件

相关