20 var
$contexts = array(
'single',
'multiple',
'export' );
22 var
$icon =
'dashicons-calendar-alt';
29 parent::__construct();
31 $this->label = esc_html__(
'Date Updated',
'gk-gravityview' );
33 $this->
description = esc_html__(
'The date the entry was last updated.',
'gk-gravityview' );
35 add_filter(
'gravityview_field_entry_value_' . $this->name .
'_pre_link', array( $this,
'get_content' ), 10, 4 );
52 if(
'edit' === $context ) {
53 return $field_options;
58 return $field_options;
76 if( \
GV\Utils::get(
$field,
'field_path' ) !==
gravityview()->plugin->dir(
'templates/fields/field-html.php' ) ) {
__construct()
GravityView_Field_Date_Updated constructor.
new GravityView_Field_Date_Updated
$field_settings['content']
add_field_support( $key, &$field_options)
get_content( $output='', $entry=array(), $field_settings=array(), $field=array())
Filter the value of the field.
scale description p description
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Adds support for date_display setting for the field.
static format_date( $date_string='', $args=array())
Allow formatting date and time based on GravityView standards.
if(empty( $created_by)) $form_id
gravityview()
The main GravityView wrapper function.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed