Class Sensei_Shortcode_Loader
Sensei Shortcode Loader Class
This class handles the api for all Sensei shortcodes. It does not execute on the shortcodes directly but relies on a class that responds to each shortcode. Whe WordPress calls do_shortcode for a shortcode registered in this function, the functions load_shortcode will be called and it will instantiate the correct shortcode handling class as it was registered.
Author: Automattic
Since: 1.9.0
Located at includes/shortcodes/class-sensei-shortcode-loader.php
public
|
|
public
|
#
setup_shortcode_class_map( )
Array of shortcode classes that should be instantiated when WordPress loads a Sensei specific shortcode. This list contains: $shortcode => $class_name |
public
|
|
public
string
|
#
render_shortcode( $attributes, $content, $code )
Respond to WordPress do_shortcode calls for shortcodes registered in the initialize_shortcodes function. |
public
array
|
#
possibly_add_body_class( array $classes )
Add the Sensei body class if the current page has a Sensei shortcode. |
protected
array
|
$shortcode_classes
{ type string $shortcode type Sensei_Shortcode } all the shortcodes and which class to instantiate when they are called from WordPress's do_shortcode() function. |