windhamdavid 3 years ago
parent
commit
1b0c66ca3d
2 changed files with 6 additions and 5 deletions
  1. 4 3
      functions.php
  2. 2 2
      inc/smtp.php

+ 4 - 3
functions.php

@@ -23,14 +23,15 @@ add_action( 'after_setup_theme', 'dw_setup' );
 
 if ( ! function_exists( 'dw_plugs' ) ):
 function dw_plugs() {
-	if (!class_exists('dw_smtp')) {
-		//include_once(TEMPLATEPATH.'/inc/smtp.php');
-	}
+	require( get_template_directory() . '/inc/smtp.php');
+  //echo wp_mail( 'david@davidawindham.com', 'WP Mail Test', 'Mail is working' );
 	if (!class_exists('dw_crumbs')) {
 		//include_once(TEMPLATEPATH.'/inc/crumbs.php');
 	}
 }
 endif;
+add_action( 'after_setup_theme', 'dw_plugs' );
+
 
 function dw_editor() {
 	wp_enqueue_style( 'dw-gutenberg', get_theme_file_uri( '/css/editor.css' ), false, '1.0', 'all' );

+ 2 - 2
inc/smtp.php

@@ -4,7 +4,7 @@ class dw_smtp {
 
     protected static $instance;
     protected $validations;
-	
+
     function __construct() {
 
         $this->prepare_settings();
@@ -105,4 +105,4 @@ class dw_smtp {
     }
 }
 
-dw_smtp::launch();
+dw_smtp::launch();