Welcome to our Support Portal › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Passing custom variables to ppom_uploaded_file_preview? › Reply To: Passing custom variables to ppom_uploaded_file_preview?
NVM :/ I think I figured it out. inside inc/hooks.php there is
function ppom_hooks_load_input_scripts( $ppom_meta_settings, $product )
and I seem to be able to pass then into ppom_input_vars like so.
//IBX HACK -mgt
$ppom_input_vars[‘ibx_height’] = $product->get_height();
$ppom_input_vars[‘ibx_width’] = $product->get_length();
If there is a better way I’d still love to hear it.