[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_invoke_shortcode() – Calls a shortcode for a simple example

You appear to be a bot. Output may be restricted

Description

Calls a shortcode for a simple example

Usage

bw_invoke_shortcode( $shortcode, $atts, $text );

Parameters

$shortcode
( string ) required – name of shortcode
$atts
( string ) optional – attribute parameters to the shortcode
$text
( string ) optional – translated brief description of the shortcode

Returns

void

Source

File name: oik/libs/oik-sc-help.php
Lines:
1 to 19 of 19
function bw_invoke_shortcode( $shortcode, $atts=null, $text=null ) {
  BW_::p( $text );
  $example = "[$shortcode";
  if ($atts ) 
    $example .= " $atts";
  $example .= ']';
  sp();
  stag( "code" );
  e( $example ); 
  etag( "code" ); 
  ep();
  //p( $example );
  $saved = bw_global_post();
  $expanded = bw_expand_shortcode( $example );
  bw_global_post( $saved );
  e( $expanded );
  bw_trace2( $expanded, "expanded", true, BW_TRACE_DEBUG );
  //bw_backtrace();
}
 
 View on GitHub View on Trac

Published: February 2, 2018 | Last updated: February 2, 2018

Information

Function name: bw_invoke_shortcode
Plugin ref: oik – oik information kit
Version: 4.10.0
Sourcefile: libs/oik-sc-help.php
File ref: libs/oik-sc-help.php
Deprecated?: No
API Letters: B,I,S

Recent plugin updates

sb-post-edit-block v0.3.2 Update to sb-post-edit-block v0.3.2 for support for PHP 8.1, 8.2 and 8.3 ...
oik-user v0.9.0 Update to oik-user v0.9.0 for support for PHP 8.1, PHP 8.2 and PHP 8.3  ...
oik-weight-zone-shipping v0.2.11 Update to oik-weight-zone-shipping v0.2.11 for WooCommerce High-Performance order storage compatibility ...
sb-breadcrumbs-block v0.6.1 Update to sb-breadcrumbs-block v0.6.1 for support for PHP 8.1 and PHP 8.2 ...
slog v1.5.1 Update to slog v1.5.1 for support for PHP 8.1 and PHP 8.2 ...

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: herb@bobbingwide.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.4.1. PHP: 7.4.33. Memory limit: 768M