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
/** GECKOPRICE | |
* Imports CoinGecko's cryptocurrency prices into Google spreadsheets. The price feed is a ONE-dimensional array. | |
* By default, data gets transformed into a number so it looks more like a normal price data import. | |
* For example: | |
* | |
* =GECKOPRICE("BTC", "USD","$A$1") | |
* | |
* | |
* @param {cryptocurrency} the cryptocurrency ticker you want the price from | |
* @param {against fiat currency} the fiat currency ex: usd or eur |
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 | |
/** | |
* Cleanup version 2021.5.20 | |
* save to your theme and use from functions.php: | |
* require get_template_directory() . '/helpers/cleanup.php'; | |
*/ | |
/** | |
* Disable the emoji's |
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 | |
/* | |
* Changing WooCommerce City field to dropdown with predifned cities. | |
* Based on https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ | |
*/ | |
function elicohenator_override_checkout_fields( $fields ) { | |
// Create args for city fields - same for shipping & billing |
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 all CPT's to At A Glance | |
add_action( 'dashboard_glance_items', 'cpad_at_glance_content_table_end' ); | |
function cpad_at_glance_content_table_end() { | |
$args = array( | |
'public' => true, | |
'_builtin' => false | |
); | |
$output = 'object'; | |
$operator = 'and'; |