set_option

Option-related functions

Summary

set_option(string $name, string $value)

Set an option to the options table.

Note that objects and arrays must be serialized before being saved.

Parameters:
  • $name (string) – The option name.
  • $value (string) – The option value.

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

get_theme_option

Next topic

set_theme_option

This Page