📜  重力表单文件上传挂钩 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:08.942000             🧑  作者: Mango

代码示例1
add_filter( 'gform_file_upload_markup', 'change_upload_markup', 10, 4 );
 
function change_upload_markup( $file_upload_markup, $file_info, $form_id, $field_id ) {
  return '' . esc_html( $file_info['uploaded_filename'] ) . " ";
}