woocommerce_structured_data_product_offer filter-hookWC 1.0

Usage

add_filter( 'woocommerce_structured_data_product_offer', 'wp_kama_woocommerce_structured_data_product_offer_filter', 10, 2 );

/**
 * Function for `woocommerce_structured_data_product_offer` filter-hook.
 * 
 * @param  $markup_offer 
 * @param  $product      
 *
 * @return 
 */
function wp_kama_woocommerce_structured_data_product_offer_filter( $markup_offer, $product ){

	// filter...
	return $markup_offer;
}
$markup_offer
-
$product
-

Where the hook is called

WC_Structured_Data::generate_product_data()
woocommerce_structured_data_product_offer
woocommerce/includes/class-wc-structured-data.php 271
$markup['offers'] = array( apply_filters( 'woocommerce_structured_data_product_offer', $markup_offer, $product ) );

Where the hook is used in WooCommerce

Usage not found.