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

Handle required fields.

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

add_filter( 'woocommerce_save_account_details_required_fields', 'wp_kama_woocommerce_save_account_details_required_fields_filter' );

/**
 * Function for `woocommerce_save_account_details_required_fields` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_save_account_details_required_fields_filter( $array ){

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

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

WC_Form_Handler::save_account_details()
woocommerce_save_account_details_required_fields
woocommerce/includes/class-wc-form-handler.php 265-273
$required_fields = apply_filters(
	'woocommerce_save_account_details_required_fields',
	array(
		'account_first_name'   => __( 'First name', 'woocommerce' ),
		'account_last_name'    => __( 'Last name', 'woocommerce' ),
		'account_display_name' => __( 'Display name', 'woocommerce' ),
		'account_email'        => __( 'Email address', 'woocommerce' ),
	)
);

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

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