added_option WordPress Action Hook

The added_option WordPress hook is triggered when a new option is added to the database. This hook can be used to perform a variety of actions, such as updating a cached copy of the options table or sending a notification to the administrator.

do_action( 'added_option', string $option, mixed $value ) #

Fires after an option has been added.


Parameters

$option

(string)Name of the added option.

$value

(mixed)Value of the option.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More