Skip to content

Instantly share code, notes, and snippets.

@SubCon
SubCon / wpjmfe.php
Created June 15, 2022 22:19
Field editor hooks to add functionality
<?php
/**
* Jobify
*
* Do not modify this file. Place all modifications in a child theme.
*
* @package Jobify
* @category Theme
* @since 1.0.0
*/
<?php
/**
* File containing the class WP_Job_Manager_Shortcodes.
*
* @package wp-job-manager
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
<?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(); ?>
<?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();