nl

wpseek.com
A WordPress-centric search engine for devs and theme authors


  |     Browse all


update_option [ WordPress Function ]

update_option ( $option, $newvalue )
Parameters:
  • string $option Option name. Expected to not be SQL-escaped.
  • mixed $newvalue Option value. Expected to not be SQL-escaped.
Uses:
Returns:
  • bool False if value was not updated and true if value was updated.
Defined at:



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().

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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