WC_Query::stock_status_meta_query
Deprecated since 3.0.0 Replaced with taxonomy.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Returns a meta query to handle product stock status.
Method of the class: WC_Query{}
No Hooks.
Returns
Array.
Usage
$WC_Query = new WC_Query(); $WC_Query->stock_status_meta_query( $status );
- $status(string)
- .
Default:'instock'
Changelog
| Deprecated since 3.0.0 | Replaced with taxonomy. |
WC_Query::stock_status_meta_query() WC Query::stock status meta query code WC 10.7.0
public function stock_status_meta_query( $status = ProductStockStatus::IN_STOCK ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
return array();
}