interface ShortcodeHandler (View source)

Abstract interface for a class which handles shortcodes

Methods

static mixed
get_shortcodes()

Gets the list of shortcodes provided by this handler

static string
handle_shortcode(array $arguments, string $content, ShortcodeParser $parser, string $shortcode, array $extra = array())

Generate content with a shortcode value

Details

static mixed get_shortcodes()

Gets the list of shortcodes provided by this handler

Return Value

mixed

static string handle_shortcode(array $arguments, string $content, ShortcodeParser $parser, string $shortcode, array $extra = array())

Generate content with a shortcode value

Parameters

array $arguments

Arguments passed to the parser

string $content

Raw shortcode

ShortcodeParser $parser

Parser

string $shortcode

Name of shortcode used to register this handler

array $extra

Extra arguments

Return Value

string

Result of the handled shortcode