Shortcodes (category)

add_shortcode()

Adds a new shortcode and a hook for it.

apply_shortcodes()

This is a new name (alias) for the function do_shortcode().

do_shortcode()

Search content for shortcodes and applies the registered functions to the found shortcodes.

gallery_shortcode()

Function that replaces the shortcode [[gallery]] in the text of the post. This function is responsible for displaying WordPress galleries in the post.

get_shortcode_regex()

Returns a regular expression that is used to find shortcodes in the text.

has_shortcode()

Checks if the specified shortcode exists in the given text.

remove_all_shortcodes()

Removes all registered shortcodes.

remove_shortcode()

Deletes a registered shortcode.

shortcode_atts()

Processes the attributes (parameters) of the shortcode: adds default values when needed and removes inappropriate attributes.

shortcode_exists()

Checks if the specified shortcode is registered.

shortcode_parse_atts()

Parses the shortcode arguments passed as a string.

strip_shortcodes()

Removes/cuts all shortcodes from the provided text (content).

wp_audio_shortcode()

Creates HTML code for an audio player based on the specified audio file link and player output parameters.

wp_playlist_shortcode()

Gets the HTML code of the playlist from audio or video files for output in posts. Output parameters can be specified.

wp_video_shortcode()

Displays the video HTML code by specified video link and other parameters.