0
我为WooCommerce开发了自定义付款网关,但无法显示管理员设置。显示WooCommerce付款网关管理设置
该插件分为三个文件,main.php,class.php和settings.php。
网关显示在我的前端,并且功能齐全,但是,由于设置未显示在后端,因此所有内容都是硬编码的。 This is how I'm calling settings.php in class.php
我为WooCommerce开发了自定义付款网关,但无法显示管理员设置。显示WooCommerce付款网关管理设置
该插件分为三个文件,main.php,class.php和settings.php。
网关显示在我的前端,并且功能齐全,但是,由于设置未显示在后端,因此所有内容都是硬编码的。 This is how I'm calling settings.php in class.php
我的代码中缺少负责显示设置的管理选项功能。
`function admin_options() {
?>
<h2><?php _e('Settings Tab','woocommerce'); ?></h2>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table> <?php
}`