- https://trello.com/b/iuskDHXt/komanda-board
- https://trello.com/b/whv5gtuj/tpt-pin-planner
- https://trello.com/b/1KRMaYUN/bullet-journal-companion-template-
- https://trello.com/b/KQxSg1jW/gs
- https://trello.com/b/4CyRXDgL/demo-m20170600166-logistic
- https://trello.com/b/fpYBRlzg/demo
- https://trello.com/b/EAnzdYGO/sales-team-resources
- https://trello.com/b/51WsEhtE/feature-requests
- https://trello.com/b/yrJ4Ek5D/new-website
- https://trello.com/b/dPSxk29R/bible-checklist
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
<?php | |
class My_Custom_My_Account_Endpoint { | |
/** | |
* Custom endpoint name. | |
* | |
* @var string | |
*/ | |
public static $endpoint = 'my-custom-endpoint'; |
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
<?php | |
/** | |
* Custom variable price HTML. | |
* Shows "Starting at" prefix with when min price is different from max price. | |
* | |
* @param stirng $price Product price HTML | |
* @param WC_Product_Variable $product Product data. | |
* @return string | |
*/ | |
function cs_my_wc_custom_variable_price_html( $price, $product ) { |
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
<?php | |
/** | |
* Plugin Name: No Gutenberg for old versins of WooCommerce | |
* Plugin URI: https://gist.github.com/claudiosanches/d0231798eb6041e4911b4bca409ec1ac | |
* Description: Disable Gutenberg in Edit Product screen for WooCommerce 3.4.x. | |
* Author: Claudio Sanches | |
* Author URI: https://claudiosanches.com | |
* Version: 1.0.0 | |
* License: GPLv3 | |
* |
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
<?php | |
/** | |
* Custom simple product price format. | |
* | |
* Adds credit cart parcels in price html. | |
* | |
* @param string $price Old price format. | |
* | |
* @return string Price format with credit card parcels. | |
*/ |
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
/** | |
* Optimize WooCommerce Scripts | |
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
function child_manage_woocommerce_styles() { | |
//remove generator meta tag | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
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
function request_token() { | |
$encoded_auth = base64_encode( $this->client_id . ":" . $this->client_secret ); | |
$args = array( | |
'method' => 'POST', | |
'httpversion' => '1.1', | |
'headers' => array( | |
'Authorization' => 'Basic '. $encoded_auth, | |
'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8', | |
), |
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
//add&remove field from user profiles - sorce:http://davidwalsh.name/add-profile-fields | |
function modify_contact_methods($profile_fields) { | |
// Add new fields | |
$profile_fields['company'] = 'Company'; | |
// Remove old fields | |
//unset($profile_fields['aim']); | |
return $profile_fields; |
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
<?php | |
function tirarAcentos($string){ | |
$string = preg_replace(array("/(á|à|ã|â|ä)/","/(Á|À|Ã|Â|Ä)/","/(é|è|ê|ë)/","/(É|È|Ê|Ë)/","/(í|ì|î|ï)/","/(Í|Ì|Î|Ï)/","/(ó|ò|õ|ô|ö)/","/(Ó|Ò|Õ|Ô|Ö)/","/(ú|ù|û|ü)/","/(Ú|Ù|Û|Ü)/","/(ñ)/","/(Ñ)/","/(ç)/","/(Ç)/"),explode(" ","a A e E i I o O u U n N c C"),$string); | |
$char = array(' & ', 'ª ', ' (', ') ', '(', ')', ' - ', ' / ', ' /', '/ ', '/', ' | ', ' |', '| ', ' | ', '|', '_', '.', ' '); | |
return strtolower(str_replace($char, '-', $string)); | |
} |
NewerOlder