WC_Settings_Advanced::get_own_sections
Get own sections.
Метод класса: WC_Settings_Advanced{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_own_sections();
Код WC_Settings_Advanced::get_own_sections() WC Settings Advanced::get own sections WC 10.6.2
protected function get_own_sections() {
$sections = array(
'' => __( 'Page setup', 'woocommerce' ),
'keys' => __( 'REST API keys', 'woocommerce' ),
);
$features_controller = wc_get_container()->get( FeaturesController::class );
if ( $features_controller->feature_is_enabled( 'rest_api_caching' ) ) {
$sections['rest_api_caching'] = __( 'REST API caching', 'woocommerce' );
}
$sections['webhooks'] = __( 'Webhooks', 'woocommerce' );
$sections['legacy_api'] = __( 'Legacy API', 'woocommerce' );
$sections['woocommerce_com'] = __( 'WooCommerce.com', 'woocommerce' );
if ( FeaturesUtil::feature_is_enabled( 'blueprint' ) ) {
$sections['blueprint'] = __( 'Blueprint (beta)', 'woocommerce' );
}
return $sections;
}