Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP-Login ES for Local and Remote
<?php
if ($_SERVER['HTTP_HOST'] === "localhost") {
define('DB_NAME', '');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('WP_HOME', 'http://localhost/');
define('WP_SITEURL', 'http://localhost/');
define('WP_DEBUG', false);
} else {
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('WP_HOME', 'http://www.');
define('WP_SITEURL', 'http://www.');
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/domains//public_html/');
define('FTP_USER', '');
define('FTP_PASS', '');
define('FTP_HOST', '');
define('FTP_SSL', false);
define('WP_DEBUG', false);
}
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define('AUTH_KEY', 'pon aquí tu frase aleatoria');
define('SECURE_AUTH_KEY', 'pon aquí tu frase aleatoria');
define('LOGGED_IN_KEY', 'pon aquí tu frase aleatoria');
define('NONCE_KEY', 'pon aquí tu frase aleatoria');
define('AUTH_SALT', 'pon aquí tu frase aleatoria');
define('SECURE_AUTH_SALT', 'pon aquí tu frase aleatoria');
define('LOGGED_IN_SALT', 'pon aquí tu frase aleatoria');
define('NONCE_SALT', 'pon aquí tu frase aleatoria');
//Calculate Salt on: https://api.wordpress.org/secret-key/1.1/salt/
$table_prefix = 'wpclmkg_';
define ('WPLANG', 'es_ES');
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.