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:
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.
-
Post Views Counter100,000+ installs
do_action( 'added_option', $name, $value )includes/class-visits.php:3114 -
BeyondSEO20,000+ installs
do_action( 'added_option', BaseConstants::OPTION_PLUGIN_SETTINGS, $value )inc/Core/Storage/SettingsStorage.php:141 -
Animation Addons for Elementor10,000+ installs
do_action( 'added_option', $option, $value )inc/Compat/Key_Bridge.php:452 -
Variation Swatches for WooCommerce9,000+ installs
do_action( 'added_option', 'rtwpvs', $value )app/Controllers/Install.php:645 -
SOOZ2,000+ installs
do_action( 'added_option', $option_key, $payload )includes/core/semaphores.php:652 -
Exchange Rates800+ installs
do_action( 'added_option', $option, $value )src/Service/UpdateDataSources.php:201 -
VERIFIED Crypto Checkout100+ installs
do_action( 'added_option', $entry['option_name'], $new )includes/wallet-setup/class-vccp-wallet-store.php:87 -
WebinarIgnition80+ installs
do_action( 'added_option', $name, $data )inc/wi-page-mode-admin.php:1675 -
CYBERMAPS: XML Sitemaps & llms.txt20+ installs
do_action( 'added_option', $option, $after['value'] )src/Admin/ConfigurationMutationStore.php:78 -
Aculect Icon Library10+ installs
do_action( 'added_option', $name, $values[1] )src/OptionMutationLock.php:283 -
First Party AnalyticsFewer than 10 installs
do_action( 'added_option', $option_name, $value )src/class-options.php:299 -
CustomFields.comFewer than 10 installs
do_action( 'added_option', $name, $groups )includes/class-admin.php:190 -
PerfLocaleFewer than 10 installs
do_action( 'added_option', $option, $value )src/Database/OptionWriter.php:429 -
Lumioh SEOFewer than 10 installs
do_action( 'added_option', $key, $value )includes/class-lumioh-seo-revisions.php:567 -
TamRank SEOFewer than 10 installs
do_action( 'added_option', $name, $change['new'] )includes/class-tamrank-manual-task-source.php:71 -
JonnyAD SEOFewer than 10 installs
do_action( 'added_option', $name, $next )includes/connection.php:247 -
Fortop Referral Search TermFewer than 10 installs
do_action( 'added_option', $name, $next )includes/class-stt2m-option-cas.php:56 -
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.