This file contains hidden or 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
name: wordpress | |
recipe: wordpress | |
proxy: | |
pma: | |
- pma.wordpress.lndo.site | |
config: | |
webroot: . | |
via: nginx | |
php: '7.0' | |
xdebug: true |
This file contains hidden or 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
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Automattic\WooCommerce\Client; | |
use Automattic\WooCommerce\HttpClient\HttpClientException; | |
function getWoocommerceConfig() | |
{ | |
$woocommerce = new Client( |
This file contains hidden or 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
[{ | |
"sku": "GIJOE036", | |
"categorias": ["GI Joe", "80s", "Cartoon"], | |
"titulo": "Cobra Commander G.I. Joe T-Shirt", | |
"url": "cobra-commander-g-i-joe-t-shirt", | |
"pics": ["https:\/\/80stees.imgix.net\/s\/files\/1\/0384\/0921\/products\/cobra-commander-g-i-joe-t-shirt.v3.dsk.jpeg?v=1461357556&usm=18&auto=format&fit=max&h=710&w=463&"], | |
"desc": "This G.I Joe shirt is officially licensed by Hasbro and features a print of the Cobra logo.", | |
"articulos": [{ | |
"precio": 26.97, | |
"descuento": 0, |
This file contains hidden or 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
<?php | |
/* | |
Plugin Name: Hangar plugin | |
Description: Hangar prueba | |
Version: 0 | |
Author: Daniel Bogarin | |
License: GPL2 | |
*/ | |
class WPHangarAPi { |
This file contains hidden or 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
<?php | |
class Cart extends CartCore | |
{ | |
/** | |
* This is a override of getTotalShippingCost. | |
* This calculates the shipping according to the quantity into the cart. | |
* For each product into the cart, the shipping is going to be incremental by its 50%. | |
* E.g: Shipping initial Cost = 2000 and there are 3 products | |
* So, One product 2000, two Products 2000 + 1000 = 3000, three products 3000 + 1500 = 4500 and etc. |
This file contains hidden or 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
/* 575.747289 is the exchange rate to change. */ | |
UPDATE ps_product_shop SET price = (price/575.747289); | |
/* 575.747289 is the exchange rate to change. */ | |
UPDATE ps_product SET price = (price/575.747289) ; |
This file contains hidden or 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
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Automattic\WooCommerce\Client; | |
use Automattic\WooCommerce\HttpClient\HttpClientException; | |
function getWoocommerceConfig() | |
{ |
This file contains hidden or 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
<?php | |
/** | |
* WordPress Cron Implementation for hosts, which do not offer CRON or for which | |
* the user has not set up a CRON job pointing to this file. | |
* | |
* The HTTP request to this file will not slow down the visitor who happens to | |
* visit when the cron job is needed to run. | |
* | |
* @package WordPress | |
*/ |
This file contains hidden or 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
<?php | |
include('simple_html_dom.php'); | |
$diputadosCostaRica = new DiputadosCostaRica(); | |
$diputadosCostaRica->index(); | |
This file contains hidden or 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
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) { | |
} | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: 992px) { | |
} |