|
@@ 603-609 (lines=7) @@
|
| 600 |
|
// Skip if all email template tags context setup exit. |
| 601 |
|
if ( $this->config['email_tag_context'] && 'all' !== $this->config['email_tag_context'] ) { |
| 602 |
|
if ( is_array( $this->config['email_tag_context'] ) ) { |
| 603 |
|
foreach ( $email_tags as $index => $email_tag ) { |
| 604 |
|
if ( in_array( $email_tag['context'], $this->config['email_tag_context'] ) ) { |
| 605 |
|
continue; |
| 606 |
|
} |
| 607 |
|
|
| 608 |
|
unset( $email_tags[ $index ] ); |
| 609 |
|
} |
| 610 |
|
} else { |
| 611 |
|
foreach ( $email_tags as $index => $email_tag ) { |
| 612 |
|
if ( $this->config['email_tag_context'] === $email_tag['context'] ) { |
|
@@ 611-617 (lines=7) @@
|
| 608 |
|
unset( $email_tags[ $index ] ); |
| 609 |
|
} |
| 610 |
|
} else { |
| 611 |
|
foreach ( $email_tags as $index => $email_tag ) { |
| 612 |
|
if ( $this->config['email_tag_context'] === $email_tag['context'] ) { |
| 613 |
|
continue; |
| 614 |
|
} |
| 615 |
|
|
| 616 |
|
unset( $email_tags[ $index ] ); |
| 617 |
|
} |
| 618 |
|
} |
| 619 |
|
} |
| 620 |
|
|