woocommerce_product_parent

woocommerce_product_parent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_parent') is found 1 times:

  • /includes/legacy/abstract-wc-legacy-product.php line 418
    	 * @return int
    	 */
    	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 );
    	}
    
    	/**
    	 * Returns the upsell product ids.
    	 *
    	 * @deprecated 3.0.0