Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tiago Bega tsbega

🏠
Working from home
View GitHub Profile
@helgatheviking
helgatheviking / add-taxonomy-to-woocommerce-export.php
Last active Aug 15, 2021
Add a custom taxonomy to WooCommerce import/export
View add-taxonomy-to-woocommerce-export.php
<?php
/*
* Plugin Name: WooCommerce Add Taxonomy to Export
* Plugin URI: https://gist.github.com/helgatheviking/114c8df50cabb7119b3c895b1d854533/
* Description: Add a custom taxonomy to WooCommerce import/export.
* Version: 1.0.1
* Author: Kathy Darling
* Author URI: https://kathyisawesome.com/
*
* Woo: 18716:fbca839929aaddc78797a5b511c14da9
@devinsays
devinsays / example-ajax-enqueue.php
Last active Aug 31, 2021
Simple WordPress Ajax Example
View example-ajax-enqueue.php
<?php
function example_ajax_enqueue() {
// Enqueue javascript on the frontend.
wp_enqueue_script(
'example-ajax-script',
get_template_directory_uri() . '/js/simple-ajax-example.js',
array('jquery')
);