如何解决WordPress 自定义启用/禁用多站点管理设置
我有这个多站点设置,您可以在其中启用和禁用全局分类法。但我不知道如何检索和保存数据。有人可以帮我吗?
这将是视图
这是我的代码
function network_settings_screen() {
<div class="wrap">
<h1><?php esc_html_e( 'MCMultisite Distributor Global Settings','distributor' ); ?></h1>
<form action="" method="post">
<input type="hidden" name="dt_network_settings" value="1">
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php esc_html_e( 'Enable Multisite use one taxonomy db table.','distributor' ); ?></th>
</tr>
<tr>
<td>
<ul class="media-handling">
<li>
<label><input type="radio" value="enable" name="dt_settings[network_taxonomy]">
<?php esc_html_e( 'Enable (default).','distributor' ); ?>
</label>
</li>
<li>
<label><input type="radio" value="disable" name="dt_settings[network_taxonomy]">
<?php esc_html_e( 'Disable','distributor' ); ?>
</label>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<?php submit_button(); ?>
</form>
</div>
<?php
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。