RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Show blog title
Code <h1><?php echo get_option( 'blogname' ); ?></h1> Output Name of the blog in H1 style
Show Character Set
Code <p><?php echo esc_html( sprintf( __( 'Character set: %s', 'textdomain' ), get_option( 'blog_charset' ) ) ); ?></p> Output Character set: UTF-8
Handling non-existing options
Code <?php echo get_option( 'something_bla_bla_bla' ); ?> Output false Code <?php echo get_option( 'something_bla_bla_bla', 'Oh no!' ); ?> Output Oh no!
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website