WordPress filter hook
thwcfd_shipping_fields_priority
Fired by 4 WordPress plugins, running on 452K+ sites between them.
How to use thwcfd_shipping_fields_priority
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'thwcfd_shipping_fields_priority', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Checkout Field Editor (Checkout Manager) for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire thwcfd_shipping_fields_priority
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Checkout Field Editor (Checkout Manager) for WooCommerce400,000+ installs
apply_filters( 'thwcfd_shipping_fields_priority', 1000 )public/class-thwcfd-public-checkout.php:50 -
FunnelKit30,000+ installs
apply_filters( 'thwcfd_shipping_fields_priority', 1000 )modules/checkouts/compatibilities/setup-theme/class-checkout-field-editor.php:35 -
Fluid Checkout for WooCommerce20,000+ installs
apply_filters( 'thwcfd_shipping_fields_priority', 1000 )inc/compat/plugins/compat-plugin-woo-checkout-field-editor-pro.php:64 -
CheckoutWC Lite2,000+ installs
apply_filters( 'thwcfd_shipping_fields_priority', 1000 )includes/Compatibility/Plugins/ThemeHighCheckoutFieldEditor.php:21
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.