type_url_form_file

函式
type_url_form_file ( No parameters )
返回值
  • (string)
相關
  • wp_media_insert_url_form()
定義位置
相關方法
type_url_form_imagetype_url_form_videotype_url_form_audiomedia_upload_type_url_formmedia_upload_file
引入
-
棄用
3.3.0

type_url_form_file: 這個函式生成表單元素,用於在文章或頁面中新增檔案。它需要三個引數:$url, $field_name, 和$button_text。$url是要新增的檔案的URL,$field_name是輸入欄位的名稱,$button_text是選擇檔案的按鈕上要顯示的文字。

處理檢索一個通用檔案的insert-from-URL形式。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function type_url_form_file() {
_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" );
return wp_media_insert_url_form( 'file' );
}
function type_url_form_file() { _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" ); return wp_media_insert_url_form( 'file' ); }
function type_url_form_file() {
	_deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" );
	return wp_media_insert_url_form( 'file' );
}

常見問題

FAQs
檢視更多 >