One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^index\.php$ - [L] | |
RewriteRule (.*) ./index.php?id=$1 [L] | |
</IfModule> |
// Get The Page ID You Need | |
get_option( 'woocommerce_shop_page_id' ); | |
get_option( 'woocommerce_cart_page_id' ); | |
get_option( 'woocommerce_checkout_page_id' ); | |
get_option( 'woocommerce_pay_page_id' ); | |
get_option( 'woocommerce_thanks_page_id' ); | |
get_option( 'woocommerce_myaccount_page_id' ); | |
get_option( 'woocommerce_edit_address_page_id' ); | |
get_option( 'woocommerce_view_order_page_id' ); | |
get_option( 'woocommerce_terms_page_id' ); |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
<?php | |
class acf_field_gravity_forms extends acf_field { | |
function __construct() { | |
$this->name = 'gravity_forms_field'; | |
$this->label = __( 'Gravity Forms', 'acf' ); | |
$this->category = __( "Relational", 'acf'); | |
$this->defaults = array( | |
'multiple' => 0, |
<?php | |
class acf_field_gravity_forms extends acf_field { | |
function __construct() { | |
$this->name = 'gravity_forms_field'; | |
$this->label = __( 'Gravity Forms', 'acf' ); | |
$this->category = __( "Relational", 'acf'); | |
$this->defaults = array( | |
'multiple' => 0, |
<?php | |
add_action( 'user_register', 'assign_membership_on_register', 10, 1 ); | |
function assign_membership_on_register( $user_id ) { | |
$membership_id = 1343; | |
$member = MS_Factory::load( 'MS_Model_Member', $user_id ); | |
$subscription = $member->add_membership( $membership_id ); | |
if ( $member->has_membership() ) { |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var bower = require('bower'); | |
var concat = require('gulp-concat'); | |
var sass = require('gulp-sass'); | |
var compass = require('gulp-compass'); | |
var minifyCss = require('gulp-minify-css'); | |
var rename = require('gulp-rename'); | |
var sh = require('shelljs'); | |
var path = require('path'); |
<?php | |
/* | |
Plugin Name: Toggle Debug | |
Description: Proof-of-concept for an admin-bar debug mode toggle. Needs some UX love. | |
*/ | |
/* | |
// In wp-config.php, wrap debug constants in a cookie conditional | |
if ( isset( $_COOKIE['wp-debug'] ) && $_COOKIE['wp-debug'] == 'on' ) { | |
define('WP_DEBUG', true); | |
} |