Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::add_advanced_section_to_product_settings()publicWC 1.0

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() WC 9.8.1

public function add_advanced_section_to_product_settings( array $products ): array {
	if ( $this->check_lookup_table_exists() ) {
		$products['advanced'] = __( 'Advanced', 'woocommerce' );
	}

	return $products;
}