WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

HandpickedProducts::set_block_query_args() protected WC 1.0

Set args specific to this block

{} It's a method of the class: HandpickedProducts{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->set_block_query_args( $query_args );
$query_args(array) (required) (passed by reference — &)
Query args.

Code of HandpickedProducts::set_block_query_args() WC 5.6.0

protected function set_block_query_args( &$query_args ) {
	$ids = array_map( 'absint', $this->attributes['products'] );

	$query_args['post__in']       = $ids;
	$query_args['posts_per_page'] = count( $ids );
}