Warning: This method has been deprecated.
WC_Abstract_Legacy_Product::get_parent()
Get the parent of the post.
Description Description
Return Return
(int)
Source Source
File: includes/legacy/abstract-wc-legacy-product.php
public function get_parent() {
wc_deprecated_function( 'WC_Product::get_parent', '3.0', 'WC_Product::get_parent_id' );
return apply_filters( 'woocommerce_product_parent', absint( $this->get_post_data()->post_parent ), $this );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |