WC_Product::has_child()
Returns whether or not the product has any child product.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
true|false
.
Использование
$WC_Product = new WC_Product(); $WC_Product->has_child();
Код WC_Product::has_child() WC Product::has child WC 8.7.0
public function has_child() { return 0 < count( $this->get_children() ); }