[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_option – Display the value of an option field

Display the value of an option field Introduced in oik-bob-bing-wide v1.27 this shortcode allows you to display the current value of an option field.

The current value for siteurl is:[bw_option siteurl]
 
The current value for siteurl is: https://www.oik-plugins.com You can also use oik‘s field formatting logic.

[bw_csv]Field,Value
WordPress Address (URL),[bw_option siteurl url]
Site Address (URL),[bw_option home url]
E-mail Address,[bw_option admin_email email]
[/bw_csv]
 
FieldValue
WordPress Address (URL)www.oik-plugins.com
Site Address (URL)www.oik-plugins.com
E-mail Addressvsgloik@oik-plugins.com

Features

The shortcode works with single fields and simple serialised fields. To specify a field from a serialised option use dot notation e.g.

'Howdy,' replacement string: [bw_option bw_options.howdy text]
Use as login logo?[bw_option bw_options.login-logo checkbox]
 
‘Howdy,’ replacement string: Hi: Use as login logo? Yes

Limitations and caveats

  • The logic does not work with complex serialised fields.
  • Be careful what information you display.
  • You will need to use phpMyAdmin or read the source code to find the option_name values to use.
  • The logic does not yet support the capability of performing updates

Published: October 14, 2014 | Last updated: October 14, 2014

Information

Shortcode: bw_option
Plugin ref: oik-bob-bing-wide – more blocks and lazy smart shortcodes
Version: 2.2.2
API ref: bw_option() – Implement [bw_option] shortcode to display the value for an option field
Enclosed content shortcode? Needs [/code]?: No
Expands in 'the_title'?: No
Letters:

Syntax

[bw_option
option,0="| name - Option name"
type,1="text| field_type - Field type. e.g. URL, textarea"]

Shortcode examples

  • Use bw_options to display WordPress options fields

Related pages and posts

Pages
    Posts
      Posts related by tag
        Posts related by category name

          Plugins

          • All Plugins
          • oik base plugin
          • FREE oik plugins
          • WordPress plugins
          • Premium oik plugins

          Themes

          • FREE themes
          • Bespoke themes
          • Premium themes

          Blocks

          • All Blocks
          • Block examples
          • About Blocks

          Shortcodes

          • All Shortcodes
          • Shortcode examples
          • About Shortcodes

          Reference

          • About APIs
          • All APIs
          • All Classes
          • All Files
          • All Hooks

          Support

          • Contact
          • Cookies policy
          • Get API key
          • Privacy
          • Request support
          • Sitemap
          • Stay informed
          • Terms and Conditions
          oik-plugins
          Email: oikplug@oik-plugins.com

          Weight shipping plugins

          Find out which cart weight shipping plugin you need for your WooCommerce site.
          Which cart weight based plugin do I need?

          Site:  www.oik-plugins.com
          © Copyright oik-plugins 2011-2023. All rights reserved.


          Website designed and developed by Herb Miller of Bobbing Wide
          Proudly powered by WordPress and oik-plugins
          WordPress 6.1.1. PHP: 7.4.33. Memory limit: 768M