Automattic\WooCommerce\Api\InputTypes\Products

ProductFilterInput::__constructpublicWC 1.0

Constructor.

Method of the class: ProductFilterInput{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductFilterInput = new ProductFilterInput();
$ProductFilterInput->__construct( #[Description( 'Filter by product status.' )] readonly ?ProductStatus $status = null, #[Description( 'Filter by stock status.' )] readonly ?StockStatus $stock_status = null, #[Description( 'Search products by keyword.' )] readonly ?string $search = null, );

[Description( foo )] public readonly ?ProductStatus $status

: .
Default: null

[Description( fooo )] public readonly ?StockStatus $stock_status

: .
Default: null

[Description( foooo )] public readonly ?string $search

: .
Default: null

(required)
.

ProductFilterInput::__construct() code WC 10.9.1

public function __construct(
	#[Description( 'Filter by product status.' )]
	public readonly ?ProductStatus $status = null,
	#[Description( 'Filter by stock status.' )]
	public readonly ?StockStatus $stock_status = null,
	#[Description( 'Search products by keyword.' )]
	public readonly ?string $search = null,
) {
}