option — Get the value of a particular site setting for display.

View-related functions

Summary

option($name)

Get the value of a particular site setting for display.

Content for any specific option can be filtered by using a filter named ‘display_option_(option)’ where (option) is the name of the option, e.g. ‘display_option_site_title’.

Parameters:
  • $name (string) – The name of the option
Returns:

string

Usage

Examples

See Also