本文整理汇总了PHP中WC_Admin_Settings::settings方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_Admin_Settings::settings方法的具体用法?PHP WC_Admin_Settings::settings怎么用?PHP WC_Admin_Settings::settings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WC_Admin_Settings
的用法示例。
在下文中一共展示了WC_Admin_Settings::settings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_settings_pages
/**
* Include the settings page classes
*/
public static function get_settings_pages()
{
if (empty(self::$settings)) {
$settings = array();
include_once 'settings/class-wc-settings-page.php';
$settings[] = (include 'settings/class-wc-settings-general.php');
$settings[] = (include 'settings/class-wc-settings-products.php');
$settings[] = (include 'settings/class-wc-settings-tax.php');
$settings[] = (include 'settings/class-wc-settings-checkout.php');
$settings[] = (include 'settings/class-wc-settings-shipping.php');
$settings[] = (include 'settings/class-wc-settings-accounts.php');
$settings[] = (include 'settings/class-wc-settings-emails.php');
$settings[] = (include 'settings/class-wc-settings-integrations.php');
self::$settings = apply_filters('woocommerce_get_settings_pages', $settings);
}
return self::$settings;
}