WordPress action hook · part of WordPress core

added_option

A WordPress core action that 18 plugins also fire themselves, running on 142K+ sites between them.

How to use added_option

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'added_option', function( $option, $value ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from Animation Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

18 plugins that fire added_option

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Post Views Counter icon Post Views Counter100,000+ installs do_action( 'added_option', $name, $value ) includes/class-visits.php:3114
  2. BeyondSEO icon BeyondSEO20,000+ installs do_action( 'added_option', BaseConstants::OPTION_PLUGIN_SETTINGS, $value ) inc/Core/Storage/SettingsStorage.php:141
  3. Animation Addons for Elementor icon Animation Addons for Elementor10,000+ installs do_action( 'added_option', $option, $value ) inc/Compat/Key_Bridge.php:452
  4. Variation Swatches for WooCommerce icon Variation Swatches for WooCommerce9,000+ installs do_action( 'added_option', 'rtwpvs', $value ) app/Controllers/Install.php:645
  5. SOOZ icon SOOZ2,000+ installs do_action( 'added_option', $option_key, $payload ) includes/core/semaphores.php:652
  6. Exchange Rates icon Exchange Rates800+ installs do_action( 'added_option', $option, $value ) src/Service/UpdateDataSources.php:201
  7. VERIFIED Crypto Checkout icon VERIFIED Crypto Checkout100+ installs do_action( 'added_option', $entry['option_name'], $new ) includes/wallet-setup/class-vccp-wallet-store.php:87
  8. WebinarIgnition icon WebinarIgnition80+ installs do_action( 'added_option', $name, $data ) inc/wi-page-mode-admin.php:1675
  9. CYBERMAPS: XML Sitemaps & llms.txt icon CYBERMAPS: XML Sitemaps & llms.txt20+ installs do_action( 'added_option', $option, $after['value'] ) src/Admin/ConfigurationMutationStore.php:78
  10. Aculect Icon Library icon Aculect Icon Library10+ installs do_action( 'added_option', $name, $values[1] ) src/OptionMutationLock.php:283
  11. First Party Analytics icon First Party AnalyticsFewer than 10 installs do_action( 'added_option', $option_name, $value ) src/class-options.php:299
  12. CustomFields.com icon CustomFields.comFewer than 10 installs do_action( 'added_option', $name, $groups ) includes/class-admin.php:190
  13. PerfLocale icon PerfLocaleFewer than 10 installs do_action( 'added_option', $option, $value ) src/Database/OptionWriter.php:429
  14. Lumioh SEO icon Lumioh SEOFewer than 10 installs do_action( 'added_option', $key, $value ) includes/class-lumioh-seo-revisions.php:567
  15. TamRank SEO icon TamRank SEOFewer than 10 installs do_action( 'added_option', $name, $change['new'] ) includes/class-tamrank-manual-task-source.php:71
  16. JonnyAD SEO icon JonnyAD SEOFewer than 10 installs do_action( 'added_option', $name, $next ) includes/connection.php:247
  17. Fortop Referral Search Term icon Fortop Referral Search TermFewer than 10 installs do_action( 'added_option', $name, $next ) includes/class-stt2m-option-cas.php:56
  18. CalendarDrop icon CalendarDropFewer than 10 installs do_action( 'added_option', $name, $value ) includes/hosted-service.php:234

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.