Skip to content

Instantly share code, notes, and snippets.

View product_orderby.php
<?php
add_action( 'woo_ce_before_scheduled_export_general_options', 'alo_general_options_sced', 10, 1);
function alo_general_options_sced($post_ID) {
$product_orderby = get_post_meta( $post_ID, '_product_orderby', true );
// Default to Ascending
if( $product_orderby == false ) {
$product_orderby = 'title';
}
ob_start(); ?>
View pid_import.php
<?php
/*
Plugin Name: PID Import
*/
defined('ABSPATH') or die('No script kiddies please!');
add_filter( 'woo_pd_options_addons', 'alo_import_product_fields');
function alo_import_product_fields( $fields ) {
$woo_ped_addon_fields = array();