First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| */ | |
| $args = array( | |
| //////Author Parameters - Show posts associated with certain author. |
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |
| { | |
| "estados": [ | |
| { | |
| "sigla": "AC", | |
| "nome": "Acre", | |
| "cidades": [ | |
| "Acrelândia", | |
| "Assis Brasil", | |
| "Brasiléia", | |
| "Bujari", |
| /** | |
| * Remove acentos de caracteres | |
| * @param {String} stringComAcento [string que contem os acentos] | |
| * @return {String} [string sem acentos] | |
| */ | |
| function removerAcentos( newStringComAcento ) { | |
| var string = newStringComAcento; | |
| var mapaAcentosHex = { | |
| a : /[\xE0-\xE6]/g, | |
| e : /[\xE8-\xEB]/g, |
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |
Create Custom Fields in Woocommerce Checkout Page and Display them in Orders Details Page in Admin Area with this WordPress plugin:
<?php
/**
* Plugin Name: Flowershop - WooCommerceCustomOverrides
* Plugin URI: http://chillopedia.com
* Description: Overrides WooCommerce Checkout Form Fields
| // List of modules used. | |
| var gulp = require('gulp'), | |
| bump = require('gulp-bump'), // Generates new version. | |
| argv = require('yargs') | |
| .default('release', 'patch') | |
| .argv, // CLI parser. | |
| fs = require('fs'), // Used by bump. | |
| semver = require('semver'), // Used by bump. | |
| git = require('gulp-git'), // Git wrapper. | |
| jshint = require('gulp-jshint'), // Lints JS. |
| <?php | |
| /** | |
| * | |
| * Adds location rule to target specific sites in a WordPress Multisite environment | |
| * http://www.advancedcustomfields.com/resources/custom-location-rules/ | |
| * | |
| */ | |
| function acf_location_rule_type_blog( $choices ) { |
| #!/bin/sh | |
| wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.15-osx10.11-x86_64.tar.gz | |
| tar xfvz mysql-5.7* | |
| echo "stopping mamp" | |
| sudo /Applications/MAMP/bin/stop.sh | |
| sudo killall httpd mysqld | |
| echo "creating backup" |