Skip to content

Instantly share code, notes, and snippets.

@jvandyke
jvandyke / button.html
Created February 26, 2014 22:15
Replace text in an element with CSS
<button class="element">Old text</button>
@fernandoacosta
fernandoacosta / functions.php
Last active July 11, 2020 01:27
Adicionar campo personalizado na busca de pedidos WooCommerce
<?php
/**
* @woo_custom_search
* @param string $search_fields
*/
function woo_custom_search( $search_fields ) {
$search_fields[] = 'Método de pagamento';
return $search_fields;
}
add_filter( 'woocommerce_shop_order_search_fields', 'woo_custom_search' );
@renatofrota
renatofrota / init.php
Last active April 30, 2024 20:02
Adianti Debug - Funções d, dd, p, pp
<?php
// adicione estas funções no arquivo init.php
// uso: d($argumento1, $argumento2, ...);
// https://github.com/renatofrota
// dump
function d(...$args)
{
$bt = debug_backtrace();