GravityView  2.17
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 $is_searchable = true;
16 
17  var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
18 
19  /** @see GF_Field_Post_Title */
20  var $_gf_field_class_name = 'GF_Field_Post_Title';
21 
22  var $group = 'post';
23 
24  var $icon = 'dashicons-edit';
25 
26  public function __construct() {
27  $this->label = esc_html__( 'Post Title', 'gk-gravityview' );
28  parent::__construct();
29  }
30 
31  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
32 
33  if( 'edit' === $context ) {
34  return $field_options;
35  }
36 
37  $this->add_field_support('link_to_post', $field_options );
38 
39  $this->add_field_support('dynamic_data', $field_options );
40 
41  return $field_options;
42  }
43 
44 }
45 
Modify field settings by extending this class.
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
$search_operators
$name
$icon
add_field_support( $key, &$field_options)
$_gf_field_class_name
$group
__construct()
new GravityView_Field_Post_Title
if(empty( $created_by)) $form_id
Add custom options for date fields.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22
$is_searchable