GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-post-id.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-post-id.php
4  * @package GravityView
5  * @subpackage includes\fields
6  * @since 1.7
7  */
8 
9 /**
10  * Add custom options for Post ID fields
11  *
12  * @since 1.7
13  */
15 
16  var $name = 'post_id';
17 
18  var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than' );
19 
20  var $group = 'post';
21 
22  /**
23  * GravityView_Field_Post_ID constructor.
24  */
25  public function __construct() {
26  $this->label = esc_html__( 'Post ID', 'gravityview' );
27  parent::__construct();
28  }
29 
30  function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
31 
32  $this->add_field_support('link_to_post', $field_options );
33 
34  return $field_options;
35  }
36 
37 }
38 
Modify field settings by extending this class.
$name
field_options($field_options, $template_id, $field_id, $context, $input_type)
add_field_support($key= '', &$field_options)
new GravityView_Field_Post_ID
Add custom options for Post ID fields.
__construct()
GravityView_Field_Post_ID constructor.
$field_id
Definition: time.php:17
$search_operators
$group