wp_import_upload_form
函数
wp_import_upload_form ( $action )
- 参数
-
-
(string)
$action
The action attribute for the form.- Required: 是
-
(string)
- 定义位置
-
-
wp-admin/includes/template.php
, line 971
-
wp-admin/includes/template.php
- 引入
- 2.0.0
- 弃用
- –
Outputs the form used by the importers to accept the data to be imported.
function wp_import_upload_form( $action ) {
/**
* Filters the maximum allowed upload size for import files.
*
* @since 2.3.0
*
* @see wp_max_upload_size()
*
* @param int $max_upload_size Allowed upload size. Default 1 MB.
*/
$bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
$size = size_format( $bytes );
$upload_dir = wp_upload_dir();
if ( ! empty( $upload_dir['error'] ) ) :
?>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。