WordPress at Your Fingertips
filter is not described

woocommerce_product_parent filter-hook . WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

Deprecated: 3.0.0

Get the parent of the post.


add_filter( 'woocommerce_product_parent', 'filter_function_name_844', 10, 2 );
function filter_function_name_844( $absint, $that ){
	// filter...

	return $absint;


Deprecated 3.0.0

Where the hook is called

woocommerce/includes/legacy/abstract-wc-legacy-product.php 418
return apply_filters( 'woocommerce_product_parent', absint( $this->get_post_data()->post_parent ), $this );

Where in WP core the hook is used WooCommerce

Usage not found.