全新外掛
安裝啟用
—
尚無評分
1539 天前
最後更新
—
問題解決
WordPress 4.0+ PHP 5.2.4+ v1.1 上架:2018-05-23
內容簡介
這個外掛的目標是為使用者提供上傳影片到文章的功能。它使用 wp.media js 物件開啟一個上傳器框架,並選擇/上傳影片。當影片被選擇之後,它會將上傳的媒體物件 ID 儲存到一個自訂欄位中。
獲取已上傳的影片
您可以使用函式 aoc_get_post_video($post_id) 來擷取已經上傳到文章的影片的 URL。此函式接受文章 ID 的參數 (即要擷取影片的文章)。
外掛標籤
開發者團隊
原文外掛簡介
This plugin aims at providing users the capability to upload video to a post. It uses wp.media js object to open an uploader frame and choose/upload videos. Once the video is selected, it will save the id of uploaded media object in a custom field.
Getting uploaded images
You can use the function aoc_get_post_video($post_id) to retrieve the url of video that has been uploaded to a post. This function accepts the id of post (for which the video is to be fetched) as a parameter.
