Skip to content

Instantly share code, notes, and snippets.

View acenkus's full-sized avatar
🇺🇦
SLAVA UKRAINI!!!

Aivaras acenkus

🇺🇦
SLAVA UKRAINI!!!
  • Mightmedia CMS
  • Vilnius, Lithuania
  • X @acenkus
View GitHub Profile
@acenkus
acenkus / wc-hide-coupons-cart-checkout.php
Created September 29, 2016 07:16 — forked from maxrice/wc-hide-coupons-cart-checkout.php
WooCommerce - hide the coupon form on the cart or checkout page, but leave coupons enabled for use with plugins like Smart Coupons and URL Coupons
<?php
// hide coupon field on cart page
function hide_coupon_field_on_cart( $enabled ) {
if ( is_cart() ) {
$enabled = false;
}
return $enabled;
@acenkus
acenkus / CleanfilesControllerController.php
Created September 15, 2016 10:03
Koala Framework delete unuseful uploads
<?php
class Cli_CleanfilesControllerController extends Kwf_Controller_Action {
public function indexAction() {
//set memory and time for script
ini_set('memory_limit', "768M");
set_time_limit(600);
//show current dir
echo "\nYour current directory: " . getcwd();
@acenkus
acenkus / rem-calibrate.css
Created December 11, 2015 07:29 — forked from brianblakely/rem-calibrate.css
Simulate vw with rems
/* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */
:root {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
-o-text-size-adjust: none;
text-size-adjust: none;
}