[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

What’s a smart shortcode?

A smart shortcode is one which alters its behaviour taking in account the context in which it’s invoked.
Smart shortcodes understand the context in which they’re being executed and adjust their behaviour accordingly

Say you wanted to use a short code in a title, such as on this page. The [oik] shortcode will happily expand for when it’s used on a page title, but when the title is displayed in the administrative interface the shortcode should not included unwanted HTML tags. Conversely you would not want the [bw_pages] shortcode to expand in a page title. So it’s smart enough to only expand when used in the content. Smart shortcodes are defined using
  • bw_add_shortcode() – Add a shortcode that safely expands in admin page titles but is properly expanded in content and widget text
Smart shortcodes are also able to provide help, syntax, example(s), generated code snippets and extended help. Smart shortcodes can also be very advanced, referring to the current page’s context in order to determine the dynamic data to display. For examples see [bw_pages] or [bw_related]. For more information see smart shortcodes.
  • Are the shortcode parameters documented?
  • From where can I download oik?
  • How do I get shortcodes to expand in the header or footer?
  • How do I install oik?
  • How should I read the shortcode syntax?
  • What does the oik base plugin do?
  • What does oik stand for?
  • What’s a lazy shortcode?
  • Which version of oik should I use?
  • Why have my images suddenly grown?
Component:
  • oik – oik information kit
Question has actually been asked: No
Letters:

Published: May 13, 2014 | Last updated: May 13, 2014

Information

Component:
  • oik – oik information kit
Question has actually been asked: No
Letters:

Recent plugin updates

oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...
oik-types v2.3.0 Update to oik-types v2.3.0 for improved control over sort order on archives ...

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