This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_settings/
A safe way of getting values for a named option from the options database table.
For a complete list of all options available through this function, go to
http://www.yoursite.com/wp-admin/options.php
Also: You can modify any/all of the options from the same page.
<code style="color: #000000"> get_option($optionname) </code>
This is a wrapper around the get_settings function, added for readability and a more humane interface.
<code style="color: #000000"> <span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_settings</span><span style="color: #007700">(</span><span style="color: #DD0000">'show'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>
or
<code style="color: #000000"> <span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_option</span><span style="color: #007700">(</span><span style="color: #DD0000">'show'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>
Displays your blog's title in a <h1> tag.
<code style="color: #000000"> <h1><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_settings</span><span style="color: #007700">(</span><span style="color: #DD0000">'blogname'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></h1> </code>
or
<code style="color: #000000"> <h1><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_option</span><span style="color: #007700">(</span><span style="color: #DD0000">'blogname'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></h1> </code>
Displays the character set your blog is using (ex: UTF-8)
<code style="color: #000000"> <p>Character set: <span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_settings</span><span style="color: #007700">(</span><span style="color: #DD0000">'blog_charset'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </p> </code>
or
<code style="color: #000000"> <p>Character set: <span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">get_option</span><span style="color: #007700">(</span><span style="color: #DD0000">'blog_charset'</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </p> </code>