- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/wp audio shortcode
Description
Implements the functionality of the Audio Shortcode for displaying (and playing) audio-files in a post. Conditionally adds HTML audio tag (with media player) or fallback HTML.
Default WordPress supported audio formats are: mp3, ogg, wma, m4a, wav.
Usage
%%% <?php wp_audio_shortcode( $attr ) ?> %%%
Parameters
- $attr
- (array) (必須) Attributes of the shortcode.
- 初期値: なし
Return
- (string)
- HTML content to display audio.
Example
Change Log
- Since: 3.6.0
Source File
wp_audio_shortcode() is located in wp-includes/media.php
.
Related
ショートコード: do_shortcode(), add_shortcode(), remove_shortcode(), remove_all_shortcodes(), shortcode_atts(), strip_shortcodes(), shortcode_exists(), has_shortcode(), get_shortcode_regex(), wp_audio_shortcode(), wp_video_shortcode(), フィルター no_texturize_shortcodes /en
オーディオ:
wp_audio_shortcode(),
wp_get_audio_extensions(),
get_attached_audio(),
get_attached_media(),
get_embedded_audio(),
get_embedded_media(),
wp_embed_handler_audio(),
wp_mediaelement_fallback(),
wp_read_audio_metadata(),
wp_add_id3_tag_data(),
the_post_format_audio(),
get_the_post_format_media(),
get_content_audio(),
get_content_media()