This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
var app = express(); | |
var hbs = require('hbs'); | |
var i18n = require("i18n"); | |
var _ = require('lodash'); | |
app.set('view engine', 'hbs'); | |
// Available languages | |
let locales = ['es', 'de', 'en', 'fr', 'it']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Añade el código de conversion en la página de confirmación de compra | |
*/ | |
add_action( 'woocommerce_thankyou', 'my_conversion_tracking_function' ); | |
function my_conversion_tracking_function() { | |
?> | |
// Aquí el script de Analytics o AdWords | |
<?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
var app = express() | |
function userMiddleware(req, res, next) { | |
// Aquí el código para comprobar si el usuario está logeado | |
next(); | |
} | |
function adminMiddleware(req, res, next) { | |
// Aquí el código para comprobar si es un admin logeado |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Protejer el archivo de instalación | |
<files install.php> | |
Order allow,deny | |
Deny from all | |
</files> | |
# Protejer el archivo de configuración | |
<files wp-config.php> | |
Order allow,deny | |
Deny from all |