| @@ 23-31 (lines=9) @@ | ||
| 20 | /** |
|
| 21 | * GravityView_Field_Date_Created constructor. |
|
| 22 | */ |
|
| 23 | public function __construct() { |
|
| 24 | ||
| 25 | $this->label = esc_attr__( 'Date Created', 'gravityview' ); |
|
| 26 | $this->description = esc_attr__( 'The date the entry was created.', 'gravityview' ); |
|
| 27 | ||
| 28 | add_filter( 'gravityview_field_entry_value_' . $this->name . '_pre_link', array( $this, 'get_content' ), 10, 4 ); |
|
| 29 | ||
| 30 | parent::__construct(); |
|
| 31 | } |
|
| 32 | ||
| 33 | function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
|
| 34 | ||
| @@ 36-43 (lines=8) @@ | ||
| 33 | /** |
|
| 34 | * GravityView_Field_Transaction_Type constructor. |
|
| 35 | */ |
|
| 36 | public function __construct() { |
|
| 37 | $this->label = esc_html__( 'Transaction Type', 'gravityview' ); |
|
| 38 | $this->description = esc_html__( 'The type of the order: one-time payment or subscription', 'gravityview' ); |
|
| 39 | ||
| 40 | add_filter( 'gravityview_field_entry_value_' . $this->name . '_pre_link', array( $this, 'get_content' ), 10, 4 ); |
|
| 41 | ||
| 42 | parent::__construct(); |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Filter the value of the field |
|