WordPress filter hook
wc_settings_tab_demo_settings
Fired by 6 WordPress plugins, running on 2,060+ sites between them.
How to use wc_settings_tab_demo_settings
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( 'wc_settings_tab_demo_settings', function( $settings ) {
// Change $settings here.
return $settings;
}, 10, 1 );Argument names come from Order On Mobile for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire wc_settings_tab_demo_settings
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Order On Mobile for WooCommerce2,000+ installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )admin/class-woocommerce-order-on-whatsapp-admin.php:234 -
DS Woocommerce Order Email Export30+ installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )index.php:382 -
WooTcsShipmentMaker10+ installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )includes/WC_TCS_Setting_Tag.php:94 -
Evereye for Woocommerce10+ installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )inc/Admin/Admin.php:267 -
Instant Shop for WooCommerce10+ installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )admin/class-instant-shop-for-woocommerce-shop-tab.php:101 -
Kadio Deposit for WoocommerceFewer than 10 installs
apply_filters( 'wc_settings_tab_demo_settings', $settings )includes/class-wc-admin.php:298
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.