de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren


  |     Alle durchsuchen


update_option [ WordPress Function ]

update_option ( $option, $newvalue )
Parameter:
  • string $option Option name. Expected to not be SQL-escaped.
  • mixed $newvalue Option value. Expected to not be SQL-escaped.
Nutzt:
Gibt zurück:
  • bool False if value was not updated and true if value was updated.
Definiert in:



Update the value of an option that was already added.

You do not need to serialize values. If the value needs to be serialized, then it will be serialized before it is inserted into the database. Remember, resources can not be serialized or added as an option.

If the option does not exist, then the option will be added with the option value, but you will not be able to set whether it is autoloaded. If you want to set whether an option is autoloaded, then you need to use the add_option().

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics