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:

functions.php
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.

  1. Orphans icon Orphans50,000+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  2. PWA icon PWA1,000+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  3. Simple Revision Control icon Simple Revision Control1,000+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  4. upPrev icon upPrev1,000+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  5. Reading Position Indicator icon Reading Position Indicator800+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  6. WP Sitemap Control icon WP Sitemap Control400+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:210
  7. Simple Consent Mode icon Simple Consent Mode400+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  8. Simple SEO Improvements icon Simple SEO Improvements300+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  9. OPI Security Boost icon OPI Security Boost80+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  10. Fleet Manager icon Fleet Manager10+ installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  11. Build a House icon Build a HouseFewer than 10 installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  12. KPiR icon KPiRFewer than 10 installs apply_filters( 'iworks_options_callback', $callback, $data, $this->options ) includes/iworks/options/options.php:282
  13. iWorks Aquarium Tracker: Water Parameters, Reminders & Notes icon 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
  14. Simple Password Policy icon 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.