39 $this->label = esc_html__(
'Transaction Type',
'gk-gravityview' );
40 $this->
description = esc_html__(
'The type of the order: one-time payment or subscription',
'gk-gravityview' );
42 add_filter(
'gravityview_field_entry_value_' . $this->name .
'_pre_link', array( $this,
'get_content' ), 10, 4 );
43 add_filter(
'gravityview/field/transaction_type/value', array( $this,
'get_value' ), 10 );
45 parent::__construct();
94 switch ( intval(
$value ) ) {
95 case self::ONE_TIME_PAYMENT:
97 $return = __(
'One-Time Payment',
'gk-gravityview');
100 case self::SUBSCRIPTION:
101 $return = __(
'Subscription',
'gk-gravityview');
Modify field settings by extending this class.
__construct()
GravityView_Field_Transaction_Type constructor.
$field_settings['content']
get_value( $value)
Filter the value of the field (future)
scale description p description
new GravityView_Field_Transaction_Type
get_content( $output, $entry=array(), $field_settings=array(), $field=array())
Filter the value of the field.
get_string_from_value( $value)
Get the string output based on the numeric value used by Gravity Forms.