Skip to content

Instantly share code, notes, and snippets.

View jgarcianewemage's full-sized avatar
💭
tu jefa

jgarcia jgarcianewemage

💭
tu jefa
View GitHub Profile
@Nodws
Nodws / WPConfig.php
Last active October 21, 2023 16:47
home and theme dirs
<?php
define('td', get_bloginfo('template_directory').'/' );
define('hd', esc_url(home_url( '/' )));
//WPconfig
$path = ''; //No trail
$http = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
define( 'WP_SITEURL', $http . $_SERVER['SERVER_NAME'] . $path );
define( 'WP_HOME', $http . $_SERVER['HTTP_HOST'] . $path );