woocommerce_product_parent

woocommerce_product_parent

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_product_parent') is found 1 times:

  • /includes/legacy/abstract-wc-legacy-product.php line 421
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    * @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