WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Report_Sales_By_Product::current_filters() public WC 1.0

Output current filters.

Это метод класса: WC_Report_Sales_By_Product{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Report_Sales_By_Product = new WC_Report_Sales_By_Product();
$WC_Report_Sales_By_Product->current_filters();

Код WC_Report_Sales_By_Product::current_filters() WC 4.5.2

woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php
<?php
public function current_filters() {

	$this->product_ids_titles = array();

	foreach ( $this->product_ids as $product_id ) {

		$product = wc_get_product( $product_id );

		if ( $product ) {
			$this->product_ids_titles[] = $product->get_formatted_name();
		} else {
			$this->product_ids_titles[] = '#' . $product_id;
		}
	}

	echo '<p><strong>' . wp_kses_post( implode( ', ', $this->product_ids_titles ) ) . '</strong></p>';
	echo '<p><a class="button" href="' . esc_url( remove_query_arg( 'product_ids' ) ) . '">' . esc_html__( 'Reset', 'woocommerce' ) . '</a></p>';
}