woocommerce_structured_data_online_store │ хук-фильтр │ WC 11.3.0

Filters the store and return-policy structured data on the policy page.

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

add_filter( 'woocommerce_structured_data_online_store', 'wp_kama_woocommerce_structured_data_online_store_filter', 10, 2 );

/**
 * Function for `woocommerce_structured_data_online_store` filter-hook.
 * 
 * @param array   $markup Structured data for the online store.
 * @param WP_Post $page   Selected refund and returns policy page.
 *
 * @return array
 */
function wp_kama_woocommerce_structured_data_online_store_filter( $markup, $page ){
	// filter...
	return $markup;
}
$markup(массив)
Structured data for the online store.
$page(WP_Post)
Selected refund and returns policy page.

Список изменений

С версии 11.3.0 Введена.

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

WC_Structured_Data::generate_online_store_data()
woocommerce_structured_data_online_store
woocommerce/includes/class-wc-structured-data.php 674
$markup = apply_filters( 'woocommerce_structured_data_online_store', $markup, $page );

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

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