wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp-includes/shortcodes.php › WordPress File
Funktionen18
› 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.
| Funktion | Kurzbeschreibung |
|---|---|
| add_shortcode | Adds a new shortcode. |
| apply_shortcodes | Searches content for shortcodes and filter shortcodes through their hooks. |
| do_shortcode | Searches content for shortcodes and filter shortcodes through their hooks. |
| do_shortcodes_in_html_tags | Searches 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 | Retrieves the shortcode attributes regex. |
| get_shortcode_regex | Retrieves the shortcode regular expression for searching. |
| get_shortcode_tags_in_content | Returns a list of registered shortcode names found in the given content. |
| has_shortcode | Determines whether the passed content contains the specified shortcode. |
| remove_all_shortcodes | Clears all shortcodes. |
| remove_shortcode | Removes hook for shortcode. |
| shortcode_atts | Combines user attributes with known attributes and fill in defaults when needed. |
| shortcode_exists | Determines whether a registered shortcode exists named $tag. |
| shortcode_parse_atts | Retrieves all attributes from the shortcodes tag. |
| strip_shortcodes | Removes all shortcode tags from the given content. |
| strip_shortcode_tag | Strips a shortcode tag based on RegEx matches against post content. |
| unescape_invalid_shortcodes | Removes placeholders added by do_shortcodes_in_html_tags(). |
| _filter_do_shortcode_context | Filter the `wp_get_attachment_image_context` hook during shortcode rendering. |