__experimental_woocommerce_blocks_register_checkout_field()
Deprecated from version 5.6.0. It is no longer supported and can be removed in future releases. Use woocommerce_register_additional_checkout_field() instead.
Register a checkout field.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
null
. Nothing (null).
Usage
__experimental_woocommerce_blocks_register_checkout_field( $options );
- $options(array) (required)
- Field arguments. See CheckoutFields::register_checkout_field() for details.
Changelog
Deprecated since 5.6.0 | Use woocommerce_register_additional_checkout_field() instead. |
__experimental_woocommerce_blocks_register_checkout_field() experimental woocommerce blocks register checkout field code WC 9.6.1
function __experimental_woocommerce_blocks_register_checkout_field( $options ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore wc_deprecated_function( __FUNCTION__, '8.9.0', 'woocommerce_register_additional_checkout_field' ); woocommerce_register_additional_checkout_field( $options ); }