notification( $id )->get_setting( $setting ) ); for ( $x = 0; $x <= count ( $setting ) - 1; $x++ ) { if ( strpos( $setting[ $x ], 'field_' ) !== false ) { if ( $ninja_forms_processing->get_field_value( str_replace( 'field_', '', $setting[ $x ] ) ) ) { $setting[ $x ] = $ninja_forms_processing->get_field_value( str_replace( 'field_', '', $setting[ $x ] ) ); } else { $setting[ $x ] = ''; } } if ( ! is_array ( $setting[ $x] ) ) { $setting[ $x ] = str_replace( '[ninja_forms_all_fields]', '[ninja_forms_all_fields html=' . $html . ']', $setting[ $x ] ); $setting[ $x ] = do_shortcode( $setting[ $x ] ); $setting[ $x ] = nf_parse_fields_shortcode( $setting[ $x ] ); } } return apply_filters( 'nf_notification_process_setting', $setting, $setting_name, $id ); } }