A WordPress-centric search engine for devs and theme authors

wp-includes/shortcodes.php ›

WordPress API for creating bbcode-like tags or what WordPress calls "shortcodes". The tag and attribute parsing or regular expression code is based on the Textpattern tag parser.

Function Short description
add_shortcodeAdds a new shortcode.
do_shortcodeSearch content for shortcodes and filter shortcodes through their hooks.
do_shortcodes_in_html_tagsSearch only inside HTML elements for shortcodes and process them.
do_shortcode_tagRegular Expression callable for do_shortcode() for calling shortcode hook.
get_shortcode_atts_regexRetrieve the shortcode attributes regex.
get_shortcode_regexRetrieve the shortcode regular expression for searching.
has_shortcodeWhether the passed content contains the specified shortcode
remove_all_shortcodesClear all shortcodes.
remove_shortcodeRemoves hook for shortcode.
shortcode_attsCombine user attributes with known attributes and fill in defaults when needed.
shortcode_existsWhether a registered shortcode exists named $tag
shortcode_parse_attsRetrieve all attributes from the shortcodes tag.
strip_shortcodesRemove all shortcode tags from the given content.
strip_shortcode_tagStrips a shortcode tag based on RegEx matches against post content.
unescape_invalid_shortcodesRemove placeholders added by do_shortcodes_in_html_tags().