Function renameOption
Replaces/renames an option. If the old option exits, it creates the new option with the old option's value as the default unless the new option has already been set otherwise. Independently it always deletes the old option.
Package: core\functions\functions-basic
Since: Zenphoto 1.5.1
Since: ZenphotoCMS 1.5.8 - renamed from replaceOption() to renameOption()
Located at functions-basic.php
Since: Zenphoto 1.5.1
Since: ZenphotoCMS 1.5.8 - renamed from replaceOption() to renameOption()
Located at functions-basic.php
string |
$oldkey |
Old option name |
string |
$newkey |
New option name |