Home › 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?
May 18, 2018 at 4:12 pm
#8835
Participant
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.
-Mike