Skip to content

Instantly share code, notes, and snippets.

@ultrawebmarketing
ultrawebmarketing / woocommerce-create-order.md
Created July 23, 2020 21:03 — forked from stormwild/woocommerce-create-order.md
WooCommerce Creating Order Programmatically

WooCommerce Creating Order Programmatically

WooCommerce Create Order

creating Woocommerce order with line_item programatically

// http://stackoverflow.com/questions/26581467/creating-woocommerce-order-with-line-item-programatically
$address = array(
            'first_name' => 'Fresher',
@ultrawebmarketing
ultrawebmarketing / setup.md
Created December 6, 2019 21:35 — forked from kpheasey/setup.md
WSL, RVM & RubyMine; ubuntu on windows, bash on windows

Add inbound firewall rule for TCP 2222

  • Windows 10 has 2 new services, SSH Server Proxy and SSH Server Broker which will already be bound to port 22
  • Do not allow public connection on this rule, WSL is not proven safe

ConEmu

Add as cmd startup with bash.exe --login

Install the SSH server and some Rails essentials libraries in bash

sudo apt-get update && sudo apt-get upgrade -y
@ultrawebmarketing
ultrawebmarketing / woo-enable-reviews-bulk-edit.php
Created November 20, 2019 16:40 — forked from mariovalney/woo-enable-reviews-bulk-edit.php
WooCommerce Enable Reviews - Bulk Edit
<?php
/**
*
* Plugin Name: WooCommerce Enable Reviews - Bulk Edit
* Description: Allow enable reviews by bulk edit into WooCommerce
* Version: 1.0.0
* Author: Mário Valney
* Author URI: http://mariovalney.com
* Text Domain: woo-enable-reviews-bulk-edit
*
@ultrawebmarketing
ultrawebmarketing / scripts.js
Created November 4, 2019 18:09 — forked from nowakpiotrek/scripts.js
CF7 Multi-Step Addon Plugin (v1.0.0) fix for checkbox validation between steps
(function ( $ ) {
"use strict";
/*
* Plugin trx_mscf_ajax provides Contact Form 7 ajax behaviour
* */
$.fn.trx_mscf_ajax = function(options) {
$.fn.trx_mscf_ajax.options = $.extend( {}, $.fn.trx_mscf_ajax.defaults, options );
return this.each(function(index, container) {
@ultrawebmarketing
ultrawebmarketing / rails http status codes
Created March 27, 2019 19:51 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@ultrawebmarketing
ultrawebmarketing / sqlite3_disable_referential_to_rails_5.rb
Created February 8, 2019 15:24 — forked from javier-menendez/sqlite3_disable_referential_to_rails_5.rb
Rails 5 initializer for disable foreign keys during `alter_table` for sqlite3 adapter
require 'active_record/connection_adapters/sqlite3_adapter'
#
# Monkey-patch for disable foreign keys during `alter_table` for sqlite3 adapter for Rails 5
#
module ActiveRecord
module ConnectionAdapters
class SQLite3Adapter < AbstractAdapter