GravityView  1.19.4
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 $search_operators = array( 'is', 'in', 'not in', 'isnot', 'contains');
16 
17  var $_gf_field_class_name = 'GF_Field_Post_Tags';
18 
19  var $group = 'post';
20 
21  public function __construct() {
22  $this->label = esc_html__( 'Post Tags', '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('dynamic_data', $field_options );
33  $this->add_field_support('link_to_term', $field_options );
34 
35  return $field_options;
36  }
37 
38 }
39 
Modify field settings by extending this class.
$group
$search_operators
new GravityView_Field_Post_Tags
add_field_support($key= '', &$field_options)
$field_id
Definition: time.php:17
$_gf_field_class_name
Add custom options for date fields.
$name
__construct()
field_options($field_options, $template_id, $field_id, $context, $input_type)