woocommerce_product_parent хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_product_parent', 'wp_kama_woocommerce_product_parent_filter', 10, 2 );

/**
 * Function for `woocommerce_product_parent` filter-hook.
 * 
 * @param  $absint 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_product_parent_filter( $absint, $that ){

	// filter...
	return $absint;
}
$absint
-
$that
-

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.