GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
fields
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
*/
11
class
GravityView_Field_Post_Title
extends
GravityView_Field
{
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
46
new
GravityView_Field_Post_Title
;
GravityView_Field
Modify field settings by extending this class.
Definition:
class-gravityview-field.php:11
GravityView_Field_Post_Title\field_options
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Definition:
class-gravityview-field-post-title.php:31
GravityView_Field_Post_Title\$search_operators
$search_operators
Definition:
class-gravityview-field-post-title.php:17
GravityView_Field_Post_Title\$name
$name
Definition:
class-gravityview-field-post-title.php:13
GravityView_Field_Post_Title\$icon
$icon
Definition:
class-gravityview-field-post-title.php:24
GravityView_Field\add_field_support
add_field_support( $key, &$field_options)
Definition:
class-gravityview-field.php:508
GravityView_Field_Post_Title\$_gf_field_class_name
$_gf_field_class_name
Definition:
class-gravityview-field-post-title.php:20
GravityView_Field_Post_Title\$group
$group
Definition:
class-gravityview-field-post-title.php:22
GravityView_Field_Post_Title\__construct
__construct()
Definition:
class-gravityview-field-post-title.php:26
GravityView_Field_Post_Title
new GravityView_Field_Post_Title
Definition:
class-gravityview-field-post-title.php:46
$form_id
if(empty( $created_by)) $form_id
Definition:
other_entries.php:20
GravityView_Field_Post_Title
Add custom options for date fields.
Definition:
class-gravityview-field-post-title.php:11
$field_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition:
time.php:22
GravityView_Field_Post_Title\$is_searchable
$is_searchable
Definition:
class-gravityview-field-post-title.php:15