wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/shortcodes.php › WordPress File
Functions16
› 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_shortcode | Adds a new shortcode. |
apply_shortcodes | Search content for shortcodes and filter shortcodes through their hooks. |
do_shortcode | Search content for shortcodes and filter shortcodes through their hooks. |
do_shortcodes_in_html_tags | Search only inside HTML elements for shortcodes and process them. |
do_shortcode_tag | Regular Expression callable for do_shortcode() for calling shortcode hook. |
get_shortcode_atts_regex | Retrieve the shortcode attributes regex. |
get_shortcode_regex | Retrieve the shortcode regular expression for searching. |
has_shortcode | Whether the passed content contains the specified shortcode |
remove_all_shortcodes | Clear all shortcodes. |
remove_shortcode | Removes hook for shortcode. |
shortcode_atts | Combine user attributes with known attributes and fill in defaults when needed. |
shortcode_exists | Whether a registered shortcode exists named $tag |
shortcode_parse_atts | Retrieve all attributes from the shortcodes tag. |
strip_shortcodes | Remove all shortcode tags from the given content. |
strip_shortcode_tag | Strips a shortcode tag based on RegEx matches against post content. |
unescape_invalid_shortcodes | Remove placeholders added by do_shortcodes_in_html_tags(). |