Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Create a look up table for calculation fields
*/
function my_prefix_calculation_look_up_fields( $fields ) {
$fields = array(
'1481' => array( // Calculation field ID
'wooden_blinds', // Our table
'1479', // X axis
'1480' // Y axis
),
'1581' => array( // Calculation field ID
'fabric_blinds', // Our table
'1579', // X axis
'1580' // Y axis
)
);
return $fields;
}
add_filter( 'pewc_calculation_look_up_fields', 'my_prefix_calculation_look_up_fields' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.