Skip to content

Instantly share code, notes, and snippets.

@Wesso
Wesso / check-woo-commerce-version.php
Created June 1, 2022 13:43 — forked from carasmo/check-woo-commerce-version.php
Check WooCommerce version using version_compare( WC_VERSION ...
<?php
//don't add this above
//change the hook and the function name
function yourprefix_woocommerce_function_does_what() {
if ( ! class_exists( 'WooCommerce' ) ) return;
@Wesso
Wesso / r-debug.php
Created May 6, 2022 12:21 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
/**
* @Push and element onto the end of an array with associative key
*
* @param array $array
*
* @string $key
*
* @mixed $value
*
* @return array
@Wesso
Wesso / sublime-text-3-windows-shortcuts.md
Created April 7, 2019 20:55 — forked from mrliptontea/sublime-text-3-windows-shortcuts.md
Sublime Text 3 - Useful Shortcuts (Windows)

Sublime Text 3 - Useful Shortcuts (Windows)

General

Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
@Wesso
Wesso / style.css
Created January 31, 2018 14:14 — forked from WebEndevSnippets/style.css
Gravity Forms: 4 Column CSS
/* 4 column Gravity Forms custom ready class ------------------------------------------------------*/
.gform_wrapper .top_label li.gfield.gf_first_quarter,
.gform_wrapper .top_label li.gfield.gf_second_quarter,
.gform_wrapper .top_label li.gfield.gf_third_quarter,
.gform_wrapper .top_label li.gfield.gf_fourth_quarter {
margin:0 0 8px 0;
width:24%;
}