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 options | |
pid = /var/run/hhvm/pid | |
; hhvm specific | |
hhvm.server.file_socket = /var/run/hhvm/hhvm.sock | |
hhvm.server.type = fastcgi | |
hhvm.server.default_document = index.php | |
hhvm.server.user = www-data |
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
#!/bin/bash | |
# ntf | |
# Runs the command passed as the argument and shows a Growl notification when it's done. | |
# Usage: ntf <command> | |
# Example: `ntf echo hi` | |
# Requires Growl Notify: http://growl.info/extras.php#growlnotify | |
# Author: Ali Ukani | |
GROWLNOTIFY=/usr/local/bin/growlnotify # Location of growlnotify |
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
#!/bin/bash | |
# Copyright 2010 Michael Grace | |
# http://geek.michaelgrace.org | |
# Created 06/13/2010 | |
clear | |
echo "Script created by Mike Grace http://www.google.com/profiles/themikegrace" | |
echo "========================================================================" | |
echo "" | |
# check if script is run as root or with sudo |
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
//Mark Virtual Orders as Complete | |
add_filter( 'woocommerce_payment_complete_order_status', 'virtual_order_payment_complete_order_status', 10, 2 ); | |
function virtual_order_payment_complete_order_status( $order_status, $order_id ) { | |
$order = new WC_Order( $order_id ); | |
if ( $order_status == 'processing' && | |
( $order->status == 'on-hold' || $order->status == 'pending' || $order->status == 'failed' ) ) { | |
$virtual_order = true; |
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
version: '2' | |
services: | |
database: | |
image: mysql:5.6 | |
volumes: | |
- dbdata:/var/lib/mysql | |
environment: | |
- "MYSQL_DATABASE=homestead" | |
- "MYSQL_USER=homestead" |
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
/* WC Vendors Pro - Remove, add, or alter, product types */ | |
add_filter('product_type_selector', 'custom_product_type_selector'); | |
function custom_product_type_selector() { | |
$product_type = array( | |
'simple' => __( 'Simple product', 'wcvendors-pro' ) // If you add more product types after this, add a comma after the last ) parenthesis. | |
//'grouped' => __( 'Grouped product', 'wcvendors-pro' ) // If you add more product types after this, add a comma after the last ) parenthesis. | |
//'external' => __( 'External/Affiliate product', 'wcvendors-pro' ) // If you add more product types after this, add a comma after the last ) parenthesis. | |
//'variable' => __( 'Variable product', 'wcvendors-pro' ) // If you add more product types after this, add a comma after the last ) parenthesis. | |
// For the last product type, make sure there is NO COMMA after the right ) parenthesis. | |
); |
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
// Display Fields | |
add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); | |
// Save Fields | |
add_action( 'woocommerce_process_product_meta', 'woo_add_custom_general_fields_save' ); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Simple Backbone WordPress Example</title> | |
<link rel="stylesheet" href="base.css"> | |
</head> | |
<body> | |
<ul id="post-list"></ul> |
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
// Textarea | |
woocommerce_wp_textarea_input( | |
array( | |
'id' => '_textarea', | |
'label' => __( 'My Textarea', 'woocommerce' ), | |
'placeholder' => '', | |
'description' => __( 'Enter the custom value here.', 'woocommerce' ) | |
) | |
); |
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
{ | |
test: /\.js$/, | |
exclude: [/node_modules/], | |
use: [{ | |
loader: 'babel-loader', | |
options: { presets: ['es2015'], plugins: ['transform-vue-jsx'] } | |
}] | |
} |
OlderNewer