Wondering if we can pass an optional argument through wds_page_builder_load_parts() to either of the following places that would allow user to wp_register_script() in their theme's functions.php, and then pass the argument to enqueue for certain part(s):
Actually, this would not work, because this is assuming you already know which template the parts are being loaded on, therefore you could just enqueue conditionally based on that in functions.php
Wondering if we can pass an optional argument through wds_page_builder_load_parts() to either of the following places that would allow user to wp_register_script() in their theme's functions.php, and then pass the argument to enqueue for certain part(s):
An example, in functions.php (or our _s /inc/scripts.php):
then in template where we want to output parts we reference and pass the $handle parameter from
wp_register_script
: