Input Field – uploadfile

Input Field – uploadfile

You can use the uploadfile input field to allow users to upload any WordPress acceptable file; (e.g. PDF, MP4 videos etc.) See the below example about how you can use the uploadfile input field –
ExampleCopy to Clipboardarray(

'type' => 'uploadfile',

'heading' => esc_attr__( 'Upload PDF', 'fusion-builder' ),

'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),

'param_name' => 'pdf_file',

'value' => '',

)​x 1array(2​3  'type'        => 'uploadfile',4​5  'heading'     => esc_attr__( 'Upload PDF', 'fusion-builder' ),6​7  'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),8​9  'param_name'  => 'pdf_file',10​11  'value'       => '',12​13)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
 ( string ) Attribute name to be used in the shortcode. value
( string ) Default value as file url.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注