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 | |
// Adiciona suporte para os thumbnails | |
add_theme_support( 'post-thumbnails' ); | |
// Adiciona os tamanhos que vai usar | |
// No exemplo ela chama 'thumb_home' e tem largura e altura iguais a 150px e faz crop | |
add_image_size( 'thumb_home', 150, 150, true ); | |
// Mais exemplos de como adicionar os tamanhos: |
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: Easy Digital Downloads BTC Currency | |
* Plugin URI: http://claudiosmweb.com/ | |
* Description: Adds Bitcoin currency in Easy Digital Downloads | |
* Author: claudiosanches | |
* Author URI: http://claudiosmweb.com/ | |
* Version: 1.0 | |
* License: GPLv2 or later | |
* Text Domain: eddbitcc |
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 | |
// WooCommerce Hooks. | |
add_action( 'woocommerce_product_tabs', 'cs_add_product_tab' ); | |
add_action( 'cs_display_product_tab', 'cs_display_product_tab' ); | |
/** | |
* Add the new tab. | |
*/ | |
function cs_add_product_tab( $tabs ) { | |
$tabs['nome_da_tab'] = array( |
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
<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 --> |
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 | |
/** | |
* Pacote padrão. | |
* | |
* @param array $measures Medidas antigas. | |
* | |
* @return array Novo array com as medidas padrões. | |
*/ | |
function custom_default_package( $measures ) { |
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 | |
/** | |
* Single Product Price, including microdata for SEO | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 1.6.4 | |
*/ | |
global $post, $product; |
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 | |
/** | |
* WooCommerce - Show empty product categories. | |
* | |
* @param array $args Default widget argument. | |
* | |
* @return array New arguments with hide_empty. | |
*/ | |
function wc_show_empty_categories( $args ) { | |
$args['hide_empty'] = 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 | |
/** | |
* Front to the WordPress application. This file doesn't do anything, but loads | |
* wp-blog-header.php which does and tells WordPress to load the theme. | |
* | |
* @package WordPress | |
*/ | |
/** | |
* Tells WordPress to load the WordPress theme and output it. |
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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^(www.)?metalfuckers.com.br$ | |
RewriteRule ^(/)?$ site [L] |
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
/* Remove WP.com Stats smiley :) */ | |
img#wpstats { | |
display: none; | |
} |