Mailhog Requires Go 1.4+ to run so we will install GO language in system.
sudo apt install golang-go -y
Cross verify Go language is successfully installed.
<?php | |
/** | |
* Plugin Name: Domain Whois | |
* Plugin URI: https://claudiosmweb.com | |
* Description: Domain Whois | |
* Author: claudiosanches | |
* Author URI: http://claudiosmweb.com | |
* Version: 0.0.1 | |
* License: GPLv2 or later | |
*/ |
<?php | |
// Update table | |
function cs_add_data($competition, $date, $numbers) { | |
global $wpdb; | |
$table_name = $wpdb->prefix . 'nome da sua tabela'; | |
$numbers = str_replace('/', '-', $numbers); | |
// Test variables | |
if (!is_numeric($competition)) | |
wp_die('O número do concurso é inválido'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Exemplo de Media Types</title> | |
<!-- todos os dispositivos --> | |
<link href="estilos.css" rel="stylesheet" type="text/css" media="all" /> | |
<!-- monitores e com largura máxima de 600px (por exemplo tablets) --> | |
<link href="estilo1.css" rel="stylesheet" type="text/css" media="screen and (max-width: 800px)" /> | |
<!-- apenas para monitores coloridos --> | |
<link href="estilo2.css" rel="stylesheet" type="text/css" media="only screen and (color)" /> |
<?php | |
function custom_woocommerce_correios_shipping_methods( $rate ) { | |
$rate['cost'] = 0; | |
return $rate; | |
} | |
add_filter( 'woocommerce_correios_correios-pac_rate', 'custom_woocommerce_correios_shipping_methods' ); |
<?php | |
/** | |
* Plugin Name: WooCommerce Installments Example | |
* Plugin URI: http://claudiosmweb.com/ | |
* Description: Added the price with 3 installments without interest. | |
* Author: claudiosanches | |
* Author URI: http://www.claudiosmweb.com/ | |
* Version: 1.0 | |
* License: GPLv2 or later | |
*/ |
<?php | |
/** | |
* Send "New User Registration" email to admins when new customer is created on WooCommerce. | |
* | |
* @param int $id New customer ID. | |
*/ | |
function my_wc_customer_created_notification( $id ) { | |
wp_new_user_notification( $id, null, 'admin' ); | |
} |
<div style="float: left;"> | |
<!-- Primeiro código do Adsense aqui --> | |
</div> | |
<div style="float: left; margin: 0 20px;"> | |
<!-- Segundo código do Adsense aqui --> | |
</div> | |
<div style="float: left;"> | |
<!-- Terceiro código do Adsense aqui --> |
svn co --depth=files https://plugins.svn.wordpress.org/woocommerce/ # Checkout project without fetching content | |
cd woocommerce | |
svn up assets branches trunk # Fetch content for everything except for the tags | |
svn up --set-depth=immediates tags # Create tags directory tree, but don't fetch any content | |
svn up --set-depth=infinity tags/<tag_number> # Fetch content for a tag |