| @@ 1546-1556 (lines=11) @@ | ||
| 1543 | protected function _maybe_send_notifications( $payment = null ) { |
|
| 1544 | switch ( $payment instanceof EE_Payment ) { |
|
| 1545 | // payment notifications |
|
| 1546 | case true : |
|
| 1547 | if ( |
|
| 1548 | isset( |
|
| 1549 | $this->_req_data[ 'txn_payments' ], |
|
| 1550 | $this->_req_data[ 'txn_payments' ][ 'send_notifications' ] |
|
| 1551 | ) && |
|
| 1552 | filter_var( $this->_req_data[ 'txn_payments' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) |
|
| 1553 | ) { |
|
| 1554 | $this->_process_payment_notification( $payment ); |
|
| 1555 | } |
|
| 1556 | break; |
|
| 1557 | // registration notifications |
|
| 1558 | case false : |
|
| 1559 | if ( |
|
| @@ 1558-1568 (lines=11) @@ | ||
| 1555 | } |
|
| 1556 | break; |
|
| 1557 | // registration notifications |
|
| 1558 | case false : |
|
| 1559 | if ( |
|
| 1560 | isset( |
|
| 1561 | $this->_req_data[ 'txn_reg_status_change' ], |
|
| 1562 | $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ] |
|
| 1563 | ) && |
|
| 1564 | filter_var( $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) |
|
| 1565 | ) { |
|
| 1566 | add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true' ); |
|
| 1567 | } |
|
| 1568 | break; |
|
| 1569 | } |
|
| 1570 | } |
|
| 1571 | ||