FIX config correo SMTP
This commit is contained in:
@@ -12,9 +12,11 @@ namespace App;
|
||||
use Routes;
|
||||
use Timber\Timber;
|
||||
|
||||
// Load Composer dependencies.
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once __DIR__ . '/src/SMTP.php'; //config email
|
||||
require_once __DIR__ . '/vendor/autoload.php'; // Load Composer dependencies.
|
||||
|
||||
Timber::init();
|
||||
|
||||
$site = new StarterSite();
|
||||
|
||||
// Ruta para la página de 'noticias'
|
||||
@@ -48,3 +50,47 @@ foreach(['/es/noticias/conflictos-laborales/page/:paged','/eu/berriak/lan-gatazk
|
||||
Routes::load('archive-conflictos-laborales.php', $params, $query, 200);
|
||||
});
|
||||
}
|
||||
|
||||
// *************************DEBUGUEANDO...................
|
||||
|
||||
// add_shortcode('test_smtp_db', function() {
|
||||
// global $wpdb;
|
||||
|
||||
// $output = '<h3>Verificación directa en BD:</h3>';
|
||||
|
||||
// // Buscar en la tabla wp_options todas las entradas que contengan 'smtp'
|
||||
// $results = $wpdb->get_results("
|
||||
// SELECT option_name, option_value
|
||||
// FROM {$wpdb->options}
|
||||
// WHERE option_name LIKE '%smtp%'
|
||||
// ORDER BY option_name
|
||||
// ");
|
||||
|
||||
// if ($results) {
|
||||
// $output .= '<ul>';
|
||||
// foreach ($results as $row) {
|
||||
// $value = strlen($row->option_value) > 100 ? substr($row->option_value, 0, 100) . '...' : $row->option_value;
|
||||
// $output .= '<li><strong>' . $row->option_name . ':</strong> ' . esc_html($value) . '</li>';
|
||||
// }
|
||||
// $output .= '</ul>';
|
||||
// } else {
|
||||
// $output .= '<p>❌ No se encontró ninguna opción con "smtp" en la base de datos</p>';
|
||||
// }
|
||||
|
||||
// // Probar diferentes variaciones
|
||||
// $output .= '<h4>Pruebas de get_option:</h4><ul>';
|
||||
// $variations = [
|
||||
// 'smtp_host',
|
||||
// 'options_smtp_host',
|
||||
// '_smtp_host',
|
||||
// 'configuracion-smtp-correo_smtp_host'
|
||||
// ];
|
||||
|
||||
// foreach ($variations as $key) {
|
||||
// $value = get_option($key);
|
||||
// $output .= '<li><strong>' . $key . ':</strong> ' . ($value ? esc_html($value) : '❌ VACÍO') . '</li>';
|
||||
// }
|
||||
// $output .= '</ul>';
|
||||
|
||||
// return $output;
|
||||
// });
|
||||
Reference in New Issue
Block a user