WordPress filter hook
plugin_settings_fields
Fired by 9 WordPress plugins, running on 1,270+ sites between them.
How to use plugin_settings_fields
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( 'plugin_settings_fields', function( $settings ) {
// Change $settings here.
return $settings;
}, 10, 1 );Argument names come from Proxy & VPN Blocker's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire plugin_settings_fields
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Proxy & VPN Blocker1,000+ installs
apply_filters( 'plugin_settings_fields', $settings )includes/class-proxy-vpn-blocker-settings.php:1019 -
EO4WP: EmailOctopus for WordPress200+ installs
apply_filters( 'plugin_settings_fields', $settings )include/class_eo4wp_options.php:169 -
Simple Contact Form20+ installs
apply_filters( 'plugin_settings_fields', $settings )incl/admin/class-settings.php:390 -
ATR Global Price Options for Woocommerce20+ installs
apply_filters( 'plugin_settings_fields', $settings )admin/class-atr-woo-global-price-options-settings.php:187 -
WP HyperMD10+ installs
apply_filters( 'plugin_settings_fields', $settings )src/Utils/Settings.php:277 -
Maxi Woo Ajax Navigation10+ installs
apply_filters( 'plugin_settings_fields', $settings )includes/class-waj-settings.php:148 -
FOUNDATION LIVE SHORTCODES10+ installs
apply_filters( 'plugin_settings_fields', $settings )adminpage.php:66 -
Notakey Two Factor extensionFewer than 10 installs
apply_filters( 'plugin_settings_fields', $settings )two-factor-notakey.php:378 -
JP Important Days RibbonFewer than 10 installs
apply_filters( 'plugin_settings_fields', $settings )class.php:115
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.