GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-field-post-tags.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @file class-gravityview-field-post-tags.php
4  * @package GravityView
5  * @subpackage includes\fields
6  */
7 
8 /**
9  * Add custom options for date fields
10  */
12 
13  var $name = 'post_tags';
14 
15  var $is_searchable = true;
16 
17  var $search_operators = array( 'is', 'in', 'not in', 'isnot', 'contains');
18 
19  var $_gf_field_class_name = 'GF_Field_Post_Tags';
20 
21  var $group = 'post';
22 
23  var $icon = 'dashicons-tag';
24 
25  public function __construct() {
26  $this->label = esc_html__( 'Post Tags', 'gk-gravityview' );
27  parent::__construct();
28  }
29 
30  public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
31 
32  if( 'edit' === $context ) {
33  return $field_options;
34  }
35 
36  $this->add_field_support('dynamic_data', $field_options );
37  $this->add_field_support('link_to_term', $field_options );
38  $this->add_field_support('new_window', $field_options );
39 
40  $field_options['new_window']['requires'] = 'link_to_term';
41 
42  return $field_options;
43  }
44 
45 }
46 
Modify field settings by extending this class.
$group
$search_operators
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
add_field_support( $key, &$field_options)
new GravityView_Field_Post_Tags
$is_searchable
$icon
$_gf_field_class_name
if(empty( $created_by)) $form_id
Add custom options for date fields.
$name
__construct()
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22