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