plugins/caldera-forms/classes/email/resend.php
/**
	 * Apply conditional recipients processor's logic, if needed
	 *
	 * @since 1.5.2
	 */
Apply conditional recipients processor's logic, if needed
@since 1.5.2
Apply conditional recipients processor ' s logic if needed @since 1 . 5 . 2
protected function apply_conditional_recipients(){
		Caldera_Forms_Processor_Load::get_instance()->get_processors();
		$conditional_recipient_processors = array();
		if ( ! empty( $this->form[ 'processors' ] ) ) {
			foreach ( $this->form[ 'processors' ] as $processor_id => $processor ) {
				if ( 'conditional_recipient' === $processor[ 'type' ] ) {
					if ( isset( $processor[ 'conditions' ] ) && ! empty( $processor[ 'conditions' ][ 'type' ] ) ) {
						if ( ! Caldera_Forms::check_condition( $processor[ 'conditions' ], $this->form, $this->entry_id ) ) {
							continue;
						}
					}
					$conditional_recipient_processors[] = $processor;
				}
			}
		}
		if ( ! empty( $conditional_recipient_processors ) ) {
			foreach ( $conditional_recipient_processors as $processor ) {
				Caldera_Forms_Processor_Conditional_Recipient::post_processor( $processor[ 'config' ] );
			}
		}
	}
protected function apply_conditional_recipients ( ) { Caldera_Forms_Processor_Load :: get_instance ( ) -> get_processors ( ) ; $ conditional_recipient_processors = array ( ) ; if ( ! empty ( $ this -> form [ 'processors' ] ) ) { foreach ( $ this -> form [ 'processors' ] as $ processor_id => $ processor ) { if ( 'conditional_recipient' === $ processor [ 'type' ] ) { if ( isset ( $ processor [ 'conditions' ] ) && ! empty ( $ processor [ 'conditions' ] [ 'type' ] ) ) { if ( ! Caldera_Forms :: check_condition ( $ processor [ 'conditions' ] , $ this -> form , $ this -> entry_id ) ) { continue ; } } $ conditional_recipient_processors [ ] = $ processor ; } } } if ( ! empty ( $ conditional_recipient_processors ) ) { foreach ( $ conditional_recipient_processors as $ processor ) { Caldera_Forms_Processor_Conditional_Recipient :: post_processor ( $ processor [ 'config' ] ) ; } } }
Apply conditional recipients processor's logic, if needed
 @since 1.5.2
Apply conditional recipients processor ' s logic if needed @since 1 . 5 . 2
//This is to make sure processors are loaded properly, which they should be, but...