Automattic\WooCommerce\Admin\API\Reports\Variations\Stats

DataStore::should_exclude_simple_products()protectedWC 1.0

Returns if simple products should be excluded from the report.

Метод класса: DataStore{}

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->should_exclude_simple_products( $query_args );
$query_args(массив) (обязательный)
Query parameters.

Код DataStore::should_exclude_simple_products() WC 8.7.0

protected function should_exclude_simple_products( array $query_args ) {
	return apply_filters( 'experimental_woocommerce_analytics_variations_stats_should_exclude_simple_products', true, $query_args );
}