0
我想刪除我的WordPress後創建中的所有視頻和音頻的痕跡。我設法讓我的文章創作只接受圖像,但我的問題是,當你去中間圖書館時,下拉列表中仍然有一個視頻和音頻菜單。媒體選項卡也一樣。 請參閱下圖中的說明。刪除插入媒體中的視頻和音頻在wordpress中下拉
我想刪除我的WordPress後創建中的所有視頻和音頻的痕跡。我設法讓我的文章創作只接受圖像,但我的問題是,當你去中間圖書館時,下拉列表中仍然有一個視頻和音頻菜單。媒體選項卡也一樣。 請參閱下圖中的說明。刪除插入媒體中的視頻和音頻在wordpress中下拉
添加以下代碼添加到functions.php
function my_remove_post_mime_types($post_mime_types = array()) {
$rem_keys = array("audio", "video");
$post_mime_types = array_diff_key($post_mime_types, array_flip($rem_keys));
return $post_mime_types;
}
add_filter('post_mime_types', 'my_remove_post_mime_types');
不幸的是,沒有一個文檔的鏈接,我可以點你進一步閱讀。