type ) ) ? (string) $field->type : ''; if ( true !== GFCommon::is_pricing_field( $type ) ) { return $input; } if ( ! empty( $allowed_pricing_types ) && true !== in_array( $type, $allowed_pricing_types, true ) ) { return $input; } $form = GFAPI::get_form( (int) $form_id ); if ( empty( $form ) || ! is_array( $form ) ) { return $input; } $entry = $entry_id ? GFAPI::get_entry( (int) $entry_id ) : null; if ( is_wp_error( $entry ) ) { $entry = null; } if ( is_object( $field ) && method_exists( $field, 'get_field_input' ) ) { // Return the actual field input instead of the "not editable" notice. return $field->get_field_input( $form, $value, $entry ); } return $input; }, 10, 5 ); } )();