GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-id.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-id.php
4  * @since 2.10
5  * @subpackage includes\fields
6  * @package GravityView
7  */
8 
10 
11  var $name = 'id';
12 
13  var $is_searchable = true;
14 
15  var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than', 'in', 'not_in' );
16 
17  var $group = 'meta';
18 
19  var $icon = 'dashicons-code-standards';
20 
21  var $is_numeric = true;
22 
23  public function __construct() {
24  $this->label = esc_html__( 'Entry ID', 'gk-gravityview' );
25  $this->description = __( 'The unique ID of the entry.', 'gk-gravityview' );
26  parent::__construct();
27  }
28 
29  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
30 
31  if ( 'edit' === $context ) {
32  return $field_options;
33  }
34 
35  if ( 'single' === $context ) {
36  unset( $field_options['new_window'] );
37  }
38 
39  return $field_options;
40  }
41 }
42 
Modify field settings by extending this class.
new GravityView_Field_ID
scale description p description
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(empty( $created_by)) $form_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22