Automattic\WooCommerce\Internal\ProductAttributesLookup
LookupDataStore::add_advanced_section_to_product_settings
Handler for 'woocommerce_get_sections_products', adds the "Advanced" section to the product settings.
Метод класса: LookupDataStore{}
Хуков нет.
Возвращает
Массив. New array of settings sections.
Использование
$LookupDataStore = new LookupDataStore(); $LookupDataStore->add_advanced_section_to_product_settings( $products ): array;
- $products(массив) (обязательный)
- Original array of settings sections.
Код LookupDataStore::add_advanced_section_to_product_settings() LookupDataStore::add advanced section to product settings WC 10.5.2
public function add_advanced_section_to_product_settings( array $products ): array {
if ( $this->check_lookup_table_exists() ) {
$products['advanced'] = __( 'Advanced', 'woocommerce' );
}
return $products;
}