前言介紹
- 這款 WordPress 外掛「Music Player for WooCommerce」是 2016-07-27 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2025-04-30,距離現在已有 3 天。
- 外掛最低要求 WordPress 3.5.0 以上版本才可以安裝。
- 有 59 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!
外掛協作開發者
外掛標籤
song | audio | music | woocommerce | music player |
內容簡介
e audio files before playing or not.
Secure mode: enable/disable the secure mode to prevent unauthorized downloads of audio files.
Secure mode size: set the percentage of audio file size to be played in secure mode.
Product Page Settings of Music Players
On the product’s edit page, you will find a section named “Music Player for WooCommerce” where you can select a skin different from the default one or disable the music player entirely for that product. Additionally, you can enable/disable the secure mode for that product or set the percentage of audio file size to be played in secure mode.
Shortcodes
Use the shortcodes to insert the playlists anywhere you want.
[mp_playlists]
[mp_playlist name="MY PLAYLIST"]
The first shortcode shows all playlists. The second shortcode only shows the playlist “MY PLAYLIST”. Replace “MY PLAYLIST” with the name of your playlist to show it.
Widget
You can use the widget to insert a playlist on sidebars, just drag and drop the widget named “Music Player for WooCommerce” onto the desired widget area.
Block for Gutenberg
You can use the block to insert the playlists on pages using Gutenberg, just search for “Music Player for WooCommerce” in the Blocks section.
Elementor Widget
You can use the Elementor Widget to insert the playlists on pages using Elementor, just search for “Music Player for WooCommerce” in the Widget section.
Page Builder by SiteOrigin Widget
You can use the widget to insert the playlists on pages with Page Builder by SiteOrigin, just search for “Music Player for WooCommerce” in the Widget section.
BeaverBuilder Control
You can use the control to insert the playlists on pages with BeaverBuilder, just search for “Music Player for WooCommerce” in the Controls section.
Visual Composer Element
You can use the element to insert the playlists on pages with Visual Composer, just search for “Music Player for WooCommerce” in the Elements section.
DIVI Module
You can use the module to insert the playlists on pages with DIVI, just search for “Music Player for WooCommerce” in the Modules section.
Compatibility
The Music Player for WooCommerce is compatible with WordPress 4.8 and higher versions, and with WooCommerce 3.0 and higher versions.
原文外掛簡介
Features of the Music Player for WooCommerce, Dokan, WCFM Marketplace, and MultivendorX:
♪ Integrate a music player into the WooCommerce products, Dokan, WCFM Marketplace, and MultivendorX
♪ Includes an audio player that supports formats: OGA, MP3, WAV, WMA
♪ Supports M3U, M3U8 playlists
♪ Includes multiple skins for the Music Player
♪ Supports all most popular web browsers and mobile devices
♪ Includes a widget to insert a playlist on sidebars
♪ Includes a block to insert the playlists on pages using Gutenberg
♪ Includes a widget to insert the playlists on pages using Elementor
♪ Includes a widget for inserting the playlists on pages with Page Builder by SiteOrigin
♪ Includes a control for inserting the playlists on pages with BeaverBuilder
♪ Includes an element for inserting the playlists on pages with Visual Composer
♪ Includes a module for inserting the playlists on pages with DIVI
Note: for the other editors, insert directly the playlists’ shortcodes.
Music Player for WooCommerce includes the MediaElement.js music player in the pages of the products with audio files associated, and in the store’s pages. It allows the integration with the multivendor stores generated with Dokan, WCFM Marketplace, and MultivendorX. Furthermore, the plugin allows selecting between multiple skins.
MediaElement.js is an music player compatible with all major browsers: Internet Explorer, Firefox, Opera, Safari, Chrome and mobile devices: iPhone, iPad, Android. The music player is developed following the html5 standard. The music player supports the following file formats: MP3, WAV, WMA and OGA.
The basic version of the plugin, available for free from the WordPress Directory, has the features needed to include a music player in the pages of the products and the store.
Premium Features
Allows playing the audio files in secure mode to prevent unauthorized downloading of the audio files.
Allows to define the percent of the audio file’s size to be played in secure mode.
Supports integration with plugins:
WooCommerce
Dokan
WCFM – Marketplace
WC Vendors
MultivendorX
Advanced AJAX Product Filters by berocket
Load More Products for WooCommerce by berocket
Themify – WooCommerce Product Filter by Themify
YITH WooCommerce Ajax Product Filter by YITH
WOOF – Products Filter for WooCommerce by realmag777
Product Filter by WooBeWoo
Support post_type like auctions, included by third-party plugins.
And third-party players like:
Compact Audio Player
CP Media Player
HTML5 Audio Player
MP3 jPlayer
Interface
Global Settings of Music Players
The global settings are accessible through the menu option: “Settings/Music Player for WooCommerce”.
Include music player in all all products: checkbox to include the music player in all products.
Include in: radio button to decide where to display the music player, in pages with a single entry, multiple entries, or both (both cases by default).
Include players in cart: checkbox to include the music players on the cart page or not.
Merge in grouped products: in grouped products, display the “Add to cart” buttons and quantity fields in the players rows.
Player layout: list of available skins for the music player.
Show a single player instead of one player per audio file.
Preload: to decide if preload the audio files, their metadata, or don’t preload nothing at all.
Play all: play all players in the page (one after the other).
Loop: plays the audio player on the product page in a loop.
Player controls: determines the controls to include in the music player.
Display the player’s title: show/hide the name associated to the downloadable file.
Protect the file: checkbox to playback the songs in secure mode (only available in the pro version of the plugin).
Percent of audio used for protected playbacks: integer number from 0 to 100, that represents the percent of the size of the original audio file that will be used in the audio file for demo (only available in the pro version of the plugin).
Apply the previous settings to all products pages in the website: tick the checkbox to apply the previous settings to all products overwriting the products’ settings.
Google Analytics Integration
Tracking id: Enter the tracking id in the property settings of Google Analytics account.
Setting up the Music Players through the products’ pages
The Music Players are configured from the products pages, the Dokan interface, WCFM Marketplace, and MultivendorX.
Settings Interface
Include music player: checkbox to include the music player in the product’s page, or not.
Include in: radio button to decide where to display the music player, in pages with a single entry, multiple entries, or both (both cases by default).
Merge in grouped products: in grouped products, display the “Add to cart” buttons and quantity fields in the players rows.
Player layout: list of available skins for the music player.
Show a single player instead of one player per audio file.
Preload: to decide if preload the audio files, their metadata, or don’t preload nothing at all.
Play all: play all players in the page (one after the other).
Loop: plays the audio player on the product page in a loop.
Player controls: determines the controls to include in the music player.
Display the player’s title: show/hide the name associated to the downloadable file.
Protect the file: checkbox to playback the songs in secure mode (only available in the pro version of the plugin).
Percent of audio used for protected playbacks: integer number from 0 to 100, that represents the percent of the size of the original audio file that will be used in the audio file for demo (only available in the pro version of the plugin).
Select my own demo files: checkbox to use different audio files for demo, than the audio files for selling (only available in the pro version of the plugin).
Demo files: section similar to the audio files for selling, but in this case it allows to select different audio files for demo, and their names (only available in the pro version of the plugin).
How the Pro version of the Music Player for WooCommerce protect the audio files?
If the “Protect the file” checkbox was ticked in the product’s page, and was entered an integer number through the attribute: “Percent of audio used for protected playbacks”, the plugin will create a truncated copy of the audio files for selling (or the audio files for demo) into the “/wp-content/plugins/wcmp” directory, to be used as demo. The sizes of the audio files for demo are a percentage of the sizes of the original files (the integer number entered in the player’s settings). So, the users cannot access to the original audio files, from the public pages of the products.
Music Player for WooCommerce – Playlist Widget
The widget allows to include a playlist on sidebars, with the downloadable files associated to all products with the music player enabled, or for only some of the products.
The widget settings:
Title: the title of the widget on sidebar.
Products IDs: enter the ids of products to include in the playlist, separated by comma, or the * symbol to include all products.
Playlist layout: select between the new playlist layout and the original one.
Player layout: select the layout of music players (the widget uses only the play/pause control)
Preload: to decide if preload the audio files, their metadata, or don’t preload nothing at all. This attribute has a global scope, and will modify the default settings.
Play all: play all players in the page (one after the other). This attribute has a global scope, and will modify the default settings.
Highlight the current product: if the checkbox is ticked, and the user is in the page of a product, and it is included in the playlist, the corresponding item would be highlighted in the playlist.
Continue playing after navigate: if the checkbox is ticked, and there is a song playing when navigates, the player will continue playing after loading the webpage, in the same position.
Note: In mobiles devices where the direct action of user is required for playing audios and videos, the plugin cannot start playing dynamically.
Music Player for WooCommerce – [wcmp-playlist] shortcode
The [wcmp-playlist] shortcode allows to include a playlist on the pages’ contents, with all products, or for some of them.
The shortcode attributes are:
products_ids: enter the ids of products to include in the playlist, separated by comma, or the * symbol to include all products
[wcmp-playlist products_ids="*"]
title: enter the title text to display prominently above the playlist
[wcmp-playlist products_ids="*" title="My Playlist"]
product_categories: this feature enables you to load all products belonging to one or multiple categories at once, eliminating the need to enter their IDs individually. To filter by product categories, simply input their slugs, separated by commas
[wcmp-playlist products_ids="*" product_categories="category-1,category-2"]
product_tags: just like filtering by product categories, you can also filter products by tags. To do this, simply enter the tag slugs, separated by commas
[wcmp-playlist products_ids="*" product_tags="tag-1,tag-2"]
layout: allows to select the new or original layouts with the values: new or classic (“new” is the value by default)
[wcmp-playlist products_ids="*" layout="new"]
player_style: select the layout of music players (the playlist displays only the play/pause control)
[wcmp-playlist products_ids="*" player_style="mejs-classic"]
highlight_current_product: if the playlist is included in a product’s page, the corresponding item would be highlighted in the playlist
[wcmp-playlist products_ids="*" highlight_current_product="1"]
continue_playing: if there is a song playing when navigates, the player will continue playing after loading the webpage in the same position
[wcmp-playlist products_ids="*" continue_playing="1"]
Note: In mobiles devices where the direct action of user is required for playing audios and videos, the plugin cannot start playing dynamically.
controls: allows to configure the controls to be used with the players on playlist. The possible values are: track or all, to include only a play/pause button or all player’s controls respectively:
[wcmp-playlist products_ids="*" controls="track"]
loop: plays all playlist items in an endless loop. The accepted values are: 1 or 0
[wcmp-playlist products_ids="*" loop="1"]
cover: allows to include the featured images in the playlist. The possible values are: 0 or 1, 0 is the value by default
[wcmp-playlist products_ids="*" cover="1"]
purchased_only: includes only the audio files associated with the purchased products (Plugin commercial version)
[wcmp-playlist products_ids="*" purchased_only="1"]
purchased_products: generates the list of products purchased by the logged user (Plugin commercial version)
[wcmp-playlist purchased_products="1"]
Hooks (actions and filters)
wcmp_before_player_shop_page: action called before the players containers in the shop pages.
wcmp_after_player_shop_page: action called after the players containers in the shop pages.
wcmp_before_players_product_page: action called before the players containers in the products pages.
wcmp_after_players_product_page: action called after the players containers in the products pages.
wcmp_audio_tag: filter called when the audio tag is generated. The callback function receives four parameters: the audio tag, the product’s id, the file’s id, URL to the audio file;
wcmp_file_name: filter called when the file’s name is included with the player. The callback function receives three parameters: the file’s name, the product’s id, and the file’s id;
wcmp_widget_audio_tag: filter called when the audio tag is generated as a widget on sidebars. The callback function receives four parameters: the audio tag, the product’s id, the file’s id, URL to the audio file;
wcmp_widget_file_name: filter called when the file’s name is included with the player as a widget on sidebars. The callback function receives three parameters: the file’s name, the product’s id, and the file’s id;
wcmp_purchased_product: filter called to know if the product was purchased or not. The callback function receives two parameters: false and the product’s id.
wcmp_ffmpeg_time: filter called to determine the duration of truncated copies of the audio files for demos when the FFmpeg application is used to generate them.
Other recommended plugins
If your project is a music store, and WooCommerce is more than you need it is possible to use Music Store plugin
Or if you need a general purpose music and video player, not especific for WooCommerce, CP Media Player – Audio Player and Video Player plugin
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Music Player for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.3.6 | 1.3.7 | 1.3.8 | 1.3.9 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.5.0 | 1.5.1 | 1.6.0 | trunk | 1.1.10 | 1.1.11 | 1.3.10 | 1.3.11 | 1.0.173 | 1.0.174 | 1.0.175 | 1.0.176 | 1.0.177 | 1.0.178 | 1.0.179 | 1.0.180 | 1.0.181 | 1.0.182 | 1.0.183 | 1.0.184 | 1.0.185 | 1.0.186 | 1.0.187 | 1.0.188 | 1.0.189 | 1.0.190 | 1.0.191 | 1.0.192 | 1.0.193 | 1.0.194 | 1.0.195 | 1.0.196 | 1.0.197 |
延伸相關外掛(你可能也想知道)
WP-Spotify 》使用基於 URI 的短代碼在您的文章和頁面中連結 Spotify 音軌。, 例如:, [spotify:track:2lBpN5CZ3zLyVIPejUhN6Y], 注意事項:, 目前您僅能連結單曲,而不能...。
PlayMe 》可嵌入歌曲點播表單 WordPress 外掛,專為廣播電台設計, 適用於廣播電台, PlayMe 是由一位廣播電台節目主持人所提出的建議,為了最佳化廣播電台和聽眾的體驗...。
Recent LastFm Tracks 》此簡單小工具可將您 LastFm 的最近歌曲顯示在側邊欄中。, 只需要輸入您的使用者名稱和想要顯示的歌曲數量,就可以使用了。, 授權, 此外掛釋出的 GPL 授權讓每...。
Play Video of Song 》這個外掛可以讓你在網站側邊欄中添加一個按鈕,當點擊時會顯示一個音樂視頻播放器。利用 GOODFIDELITY 的 API 管理相關內容。, 功能, , 在一個按鈕中有一個網...。
Play Songs 》這個外掛可以讓你在網站的側邊欄上添加一個按鈕,點擊後會開啟一個 MP3 播放器,還有一個選單可以讓你選擇22種音樂類型和上千首歌曲,而且是免費的。當你瀏覽...。
Music Bar 》這是一個能夠透過底部工具列協助你管理歌曲的 WordPress 外掛。你可以在瀏覽網頁時聽音樂而不會中斷。有助於增加訪客在你的網站停留的時間。這個工具列的控制...。
MP3 Playlist Lite 》此外掛允許您將播放清單添加到頁面、文章和側邊欄中。只需創建播放清單並在想要顯示的位置貼上縮略代碼 [mp3playlist] 即可。如需添加多個播放清單,請升級至...。
LS IceCast ONAIR 》這是一個簡單的 WordPress 外掛,可以顯示從 IceCast 伺服器 (v2) 取得的正在播放的歌曲。, 你只需要透過管理面板設定 IceCast 伺服器地址和發佈點名稱即可,...。
Happy New Year 》這個外掛可以為你的 WordPress 博客創建完美的外觀。, 在你的佈景主題中添加圖像和音樂。, 許可協議, 此外掛使用 GPLv2 發布,你可以在個人或商業網站上免費...。
Play Songs Below 》這是一個外掛,可以讓你在網站底部加入一個按鈕,並顯示一個 MP3 播放器。同時還有一個包含22種音樂類型和數千首免費歌曲的菜單可供選擇。在瀏覽網站時,您可...。
Happy Christmas 》這個外掛可以為 WordPress 博客創建完美的外觀。它會在你的模板中添加圖片和歌曲。。
Bottom Bar with Music 》這是一個 WordPress 外掛,能在網站底部新增一個功能列。你可以查看最新文章、最受歡迎的文章,或是隨機地閱讀你的文章。你的訪客也可以透過這個功能列將你的...。
Audio Player 》如果你正在販售曲目、專輯或配音服務,使用者也可以預覽你的音訊內容。即使你透過 SoundCloud 進行主機託管,也可以連結到我們的應用程式,讓使用者停留在你...。