• 1.
        function is_applicable_form( $form ) {
  • 2.
            foreach ( $form['fields'] as $field ) {
  • 3.
                if($field->type =='fileupload'){return true;}
  • 4.
            }
  • 5.
            return false; 
  • 6.
    	       
  • 7.
        }
  • 8.
        
  • 9.
        function is_applicable_field( $field ) {
  • 10.
            
  • 11.
            $is_file_upload_field   = in_array( GFFormsModel::get_input_type( $field ), array( 'fileupload', 'post_image' ) );
  • 12.
            return $is_file_upload_field;
  • 13.
        }
function is_applicable_form( $form ) { foreach ( $form['fields'] as $field ) { if($field->type =='fileupload'){return true;} } return false; } function is_applicable_field( $field ) { $is_file_upload_field = in_array( GFFormsModel::get_input_type( $field ), array( 'fileupload', 'post_image' ) ); return $is_file_upload_field; }

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter