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

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

add_filter( 'woocommerce_enable_order_notes_field', 'wp_kama_woocommerce_enable_order_notes_field_filter' );

/**
 * Function for `woocommerce_enable_order_notes_field` filter-hook.
 * 
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_enable_order_notes_field_filter( $string ){

	// filter...
	return $string;
}
$string
-

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

В файле: /templates/checkout/form-shipping.php
woocommerce_enable_order_notes_field
woocommerce/templates/checkout/form-shipping.php 53
<?php if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) : ?>
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php 492
if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) && $order->get_customer_note() ) { // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php 529
if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) :

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

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