21 var
$icon =
'dashicons-smartphone';
24 $this->label = esc_html__(
'Phone',
'gk-gravityview' );
25 parent::__construct();
43 if(
'edit' === $context ) {
44 return $field_options;
47 $field_options[
'link_phone'] = array(
49 'label' => __(
'Make Phone Number Clickable',
'gk-gravityview' ),
50 'desc' => __(
'Allow dialing a number by clicking it?',
'gk-gravityview'),
56 return $field_options;
Modify field settings by extending this class.
if(empty( $created_by)) $form_id
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
Add option to link phone number.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
new GravityView_Field_Phone