/** * Explode our settings by ` and extract each value. * Check to see if the setting is a field; if it is, assign the value. * Run shortcodes and return the result. * * @access public * @since 2.8 * @return array $setting */ public function process_setting($id, $setting, $html = 0) { // save the setting name $setting_name = $setting; $format = Ninja_Forms()->notification($id)->get_setting('email_format'); if ('html' == $format) { $html = 1; } // call parent process setting method $setting = parent::process_setting($id, $setting, $html); // gotta keep the old filter in case anyone was using it. return apply_filters('nf_email_notification_process_setting', $setting, $setting_name, $id); }
/** * Explode our settings by ` and extract each value. * Check to see if the setting is a field; if it is, assign the value. * Run shortcodes and return the result. * * @access public * @since 0.0.1 * @return array $setting */ public function process_setting($id, $setting, $html = 1) { return implode(' ', parent::process_setting($id, $setting, $html)); }