Answers for "gravity forms file upload hook"

0

gravity forms file upload hook

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 '<strong>' . esc_html( $file_info['uploaded_filename'] ) . "</strong > <img class='gform_delete' src='" . GFCommon::get_base_url() .
"/images/delete.png' 
  onclick='gformDeleteUploadedFile({$form_id}, {$field_id }, this);' />";
}
Posted by: Guest on November-20-2020

Code answers related to "gravity forms file upload hook"

Browse Popular Code Answers by Language