WordPress at a glance
action is not described

add_option_(option) action-hook . WP 3.0.0

Fires after a specific option has been added.

The dynamic portion of the hook name, $option, refers to the option name.

Usage

add_action( 'add_option_(option)', 'action_function_name_9505', 10, 2 );
function action_function_name_9505( $option, $value ){
	// action...
}
$option(string)
Name of the option to add.
$value(mixed)
Value of the option.

Notes

  • Since 2.5.0 As "add_option_{$name}"

Where the hook is called

add_option()
wp-includes/option.php 508
do_action( "add_option_{$option}", $option, $value );

Where the hook is used (in WP core)

wp-admin/includes/admin-filters.php 66
add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );