[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

oik_register_shortcodes_to_shortcake() – Register our shortcodes to shortcake

Description

Register our shortcodes to shortcake

The oik base plugin provides a service which allows each shortcode to specify help, shortcode syntax etc. Each shortcode implements a function with __syntax as the function name suffix The $syntax array is constructed using the bw_skv helper API. shortcake provides a similar service, although this is not currently lazy. For each of the registered shortcodes, if it's not already registered with shortcake, then map the syntax to shortcake and register it.

Usage

oik_register_shortcodes_to_shortcake();

Parameters

Returns

void

Source

File name: oik/oik-shortcake.php
Lines:
1 to 15 of 15
function oik_register_shortcodes_to_shortcake() {
  do_action( "oik_add_shortcodes" );
  oik_require( 'shortcodes/oik-codes.php' );
  $sc_list = bw_shortcode_list();
  add_filter( "bw_sc_shortcake_compatible", "bw_sc_shortcake_compatible" );
  $sc_list = apply_filters( "bw_sc_shortcake_compatible", $sc_list );
  bw_trace2( $sc_list, "shortcode list", false );
  foreach ( $sc_list as $shortcode => $help ) {
    $registered = oik_registered_to_shortcake( $shortcode );
    if ( !$registered ) {
      $sc_syntax = _bw_lazy_sc_syntax( $shortcode );
      oik_register_shortcode_to_shortcake( $shortcode, $help, $sc_syntax );
    }  
  }
}
 
 View on GitHub View on Trac

Called by

1 to 1 of 1
  • oik_shortcake_admin_enqueue_scripts() – Implement "admin_enqueue_scripts" actions for oik’s integration with shortcake

Invoked by

    Calls

    1 to 6 of 6
    • bw_shortcode_list() – Return an associative array of shortcodes and their one line descriptions (help)
    • bw_trace2() – Trace $value to the trace log file if tracing is active
    • oik_registered_to_shortcake() – Query if the shortcode is already registered
    • oik_register_shortcode_to_shortcake() – Register a shortcode to shortcake
    • oik_require() – Invoke require_once on an oik include file or other file
    • _bw_lazy_sc_syntax() – Return shortcode syntax

    Call hooks

    1 to 2 of 2
    • bw_sc_shortcake_compatible – filter
    • oik_add_shortcodes – action
    Function name: oik_register_shortcodes_to_shortcake
    Plugin ref: oik – oik information kit
    Version: 4.15.3
    Sourcefile: oik-shortcake.php
    File ref: oik-shortcake.php
    Deprecated?: No
    API Letters: O,R,S,T

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

    Information

    Function name: oik_register_shortcodes_to_shortcake
    Plugin ref: oik – oik information kit
    Version: 4.15.3
    Sourcefile: oik-shortcake.php
    File ref: oik-shortcake.php
    Deprecated?: No
    API Letters: O,R,S,T

    Recent plugin updates

    oik-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
    SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
    oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
    oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
    oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

    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-2025. All rights reserved.


    Website designed and developed by Herb Miller of Bobbing Wide
    Proudly powered by WordPress and oik-plugins

    WordPress version: 6.8.3

    Gutenberg version: 21.7.0

    PHP version: 8.2.29