__experimental_woocommerce_blocks_register_checkout_field()
Deprecated since 5.6.0. It is no longer supported and may 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.
Returns
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 10.7.0
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 );
}