Skip to content

Instantly share code, notes, and snippets.

@ccurtin
Last active March 4, 2019 04:01
Show Gist options
  • Save ccurtin/2e04a6281f6a9ab6400c262cf8eea274 to your computer and use it in GitHub Desktop.
Save ccurtin/2e04a6281f6a9ab6400c262cf8eea274 to your computer and use it in GitHub Desktop.
Updated Description via API #24
*{
font-size: "ONE MILLION and one!";
}
some content here...yep.
* {
font-size:9232349123px;
}
<?php
/* return the currently selected SHIPPING AND HANDLING METHOD. From The Package Rate(s) */
function cctw_get_current_shipping_rate(){
$chosen_methods = WC()->session->get( 'chosen_shipping_methods' );
$chosen_shipping = $chosen_methods[0];
$packages = WC()->shipping->get_packages();
foreach ( $packages as $i => $package ) {
foreach($package['rates'] as $shipping_rate_key => $shipping_rate) {
if($chosen_shipping == $shipping_rate_key){
// return wc_cart_totals_shipping_method_label($shipping_rate);
return $shipping_rate;
}
}
}
}
?>
*{
oh-OHHH-WOW-SO_NICE-TEST-STUFF-sizing: border-box
}
*{
COOOOOOOOOOOOOOOOOOOL-TEST-STUFF-sizing: border-box
}
alert("NEW addition!")
*{
OHHH-WOW-SO_NICE-TEST-STUFF-sizing: border-box
}
* {
font-size:9232349123px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment