Warning: This method has been deprecated. Use Product Data Store get_related_products_query instead.

WC_Abstract_Legacy_Product::build_related_query( $cats_array,  $tags_array,  $exclude_ids,  $limit )

Builds the related posts query.


Description Description


Parameters Parameters

$cats_array

(Required)

$tags_array

(Required)

$exclude_ids

(Required)

$limit

(Required)


Top ↑

Source Source

File: includes/legacy/abstract-wc-legacy-product.php

	protected function build_related_query( $cats_array, $tags_array, $exclude_ids, $limit ) {
		wc_deprecated_function( 'WC_Product::build_related_query', '3.0', 'Product Data Store get_related_products_query' );
		$data_store = WC_Data_Store::load( 'product' );
		return $data_store->get_related_products_query( $cats_array, $tags_array, $exclude_ids, $limit );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.