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
// ## Globals | |
var argv = require('minimist')(process.argv.slice(2)); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
var changed = require('gulp-changed'); | |
var concat = require('gulp-concat'); | |
var flatten = require('gulp-flatten'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var imagemin = require('gulp-imagemin'); |
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 | |
/** | |
* WooCommerce Template | |
* | |
* Functions for the templating system. | |
* | |
* @package WooCommerce\Functions | |
* @version 2.5.0 | |
*/ |
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
10web-manager | |
4k-icon-fonts-for-visual-composer | |
accelerated-mobile-pages | |
accept-payments-wp | |
accu-auto-backup | |
ace-edit | |
ace-editor-for-wp | |
aceide | |
acelerator | |
acf-code-field |
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
/** | |
* Contact meta boxex | |
* Custom post type name is "prefix-contact" | |
*/ | |
function prefix_contact_add_meta_box() | |
{ | |
add_meta_box( 'contact_email', 'User Email', 'prefix_contact_email_callback', 'prefix-contact', 'side', 'low'); | |
} |
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 | |
/** | |
* Plugin Name: WordPress Export to JSON | |
* Plugin URI: https://jsnelders.com/ | |
* Description: Export all WordPress posts, pages, comments, tags, commments and users to a JSON file. | |
* Author: Jason Snelders | |
* Author URI: http://jsnelders.com | |
* Version: 2020-01-30.1 | |
**/ |
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
import Vue from 'vue'; | |
import posts from './components/posts.vue'; | |
window.axios = require('axios'); | |
window.Vue = Vue; | |
Vue.component('posts', posts); | |
const app = new Vue({ | |
el: '#app', |
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 | |
//Since 3.x WooCommerce has had an excellent native product import/export. | |
//You can do a huge amount just by tweaking your CSV to load meta values into the correct meta fields for your destination site. | |
//It'll even import images from the source site by URL if possible, and upload them to the destination site. | |
//If you need to do something a little fancier for every product you import, check out the woocommerce_product_import_* hooks here https://woocommerce.github.io/code-reference/hooks/hooks.html | |
//You can modify the CSV data before it's used, and modify the resulting WC_Product during and after creation | |
//eg do something to every product after it's created |
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 | |
/* | |
* This code uses the original function and | |
* adds a shortcode functionality to display the product loop with | |
* the products that are available adding also another shortcode for | |
* products that are unavailable | |
* | |
* Usage: [bookable_products start="2019-10-10" end="2019-10-15"] | |
* [unbookable_products start="2019-10-10" end="2019-10-15"] | |
* |
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 | |
/** | |
* Glob all our JSON facets and register them | |
* with FacetWP | |
*/ | |
function my_register_facets( $facets ) { | |
$new_facets_raw = glob(dirname(__FILE__) . '/facets/*.json'); // Or however you want to get your facet definitions | |
$new_facets = []; | |
foreach($new_facets_raw as $facet) { | |
$facet = json_decode(file_get_contents($facet), 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
**Archive Page** | |
- Before Main Content `woocommerce_before_main_content` | |
- Before Shop Loop `woocommerce_before_shop_loop` | |
- Before Shop Loop Item `woocommerce_before_shop_loop_item` | |
- Before Shop Loop Item Title `woocommerce_before_shop_loop_item_title` | |
- After Shop Loop Item Title `woocommerce_after_shop_loop_item_title` | |
- After Shop Loop Item `woocommerce_after_shop_loop_item` | |
- After Shop Loop `woocommerce_after_shop_loop` | |
- After Main Content `woocommerce_after_main_content` |
NewerOlder