| @@ -229,8 +229,32 @@ | ||
| 229 | 229 | return; |
| 230 | 230 | } |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | + // TODO: maybe change from 'source' to 'run_filters' = 'email' | |
| 234 | + if ( isset( $atts['source'] ) && $atts['source'] === 'entry_formatter' ) { | |
| 235 | + // Deprecated frm_email_value hook | |
| 236 | + $meta = array( | |
| 237 | + 'item_id' => $this->entry->id, | |
| 238 | + 'field_id' => $this->field->id, | |
| 239 | + 'meta_value' => $this->saved_value, | |
| 240 | + 'field_type' => $this->field->type, | |
| 241 | + ); | |
| 242 | + | |
| 243 | + if ( has_filter( 'frm_email_value' ) ) { | |
| 244 | + _deprecated_function( 'The frm_email_value filter', '2.04', 'the frm_display_{fieldtype}_value_custom filter' ); | |
| 245 | + $this->displayed_value = apply_filters( | |
| 246 | + 'frm_email_value', | |
| 247 | + $this->displayed_value, | |
| 248 | + (object) $meta, | |
| 249 | + $this->entry, | |
| 250 | + array( | |
| 251 | + 'field' => $this->field, | |
| 252 | + ) | |
| 253 | + ); | |
| 254 | + } | |
| 255 | + }//end if | |
| 256 | + | |
| 233 | 257 | // frm_display_{fieldtype}_value_custom hook |
| 234 | 258 | $this->displayed_value = apply_filters( |
| 235 | 259 | 'frm_display_' . $this->field->type . '_value_custom', |
| 236 | 260 | $this->displayed_value, |