Skip to content

Instantly share code, notes, and snippets.


Crini crinive

View GitHub Profile
crinive / webtogdocs.js
Last active Jan 10, 2018 — forked from mhawksey/gist:1276293
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per
View webtogdocs.js
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
crinive / wp-woo-add-product-meta.php
Created Dec 28, 2017
Add Custom Meta to products on WooCommerce
View wp-woo-add-product-meta.php
<?php // Code should be on functions.php
// 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' );
function woo_add_custom_general_fields() {
crinive / wp-image-upload-meta.php
Last active Dec 28, 2017
Wordpress: Custom Taxonomy Image
View wp-image-upload-meta.php
<?php // This must be on functions.php
/* Add Image Upload to City Taxonomy */
// Add Upload fields to "Add New Taxonomy" form
function add_city_image_field() {
// this will add the custom meta field to the add new term page
<div class="form-field">
<label for="city_image"><?php _e( 'City Image:', 'pprealty' ); ?></label>