Fires before an option is added.
Parameters
$optionstring- Name of the option to add.
$valuemixed- Value of the option.
Source
do_action( 'add_option', $option, $value );
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
| CARVIEW |
Fires before an option is added.
$optionstring$valuemixeddo_action( 'add_option', $option, $value );
| Used by | Description |
|---|---|
add_option()wp-includes/option.php | Adds a new option. |
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
For adding prefix to the option value
we can consider below example