WordPress filter hook
iworks_options_callback
Fired by 14 WordPress plugins, running on 55K+ sites between them.
How to use iworks_options_callback
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'iworks_options_callback', function( $callback, $data, $options ) {
// Change $callback here.
return $callback;
}, 10, 3 );Argument names come from Orphans's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
14 plugins that fire iworks_options_callback
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Orphans50,000+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
PWA1,000+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Simple Revision Control1,000+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
upPrev1,000+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Reading Position Indicator800+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
WP Sitemap Control400+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:210 -
Simple Consent Mode400+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Simple SEO Improvements300+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
OPI Security Boost80+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Fleet Manager10+ installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Build a HouseFewer than 10 installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
KPiRFewer than 10 installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
iWorks Aquarium Tracker: Water Parameters, Reminders & NotesFewer than 10 installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282 -
Simple Password PolicyFewer than 10 installs
apply_filters( 'iworks_options_callback', $callback, $data, $this->options )includes/iworks/options/options.php:282
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.