autoship_header_script_data

(src/scripts.php) Within the autoship_head_scripts() function and can be used to add to or completely change the JS code we output to the head of the page.

Example:

ob_start();
  ?><!-- Autoship Cloud Data Container -->
  <script>window['autoshipTemplateData']=window['autoshipTemplateData']||<?php echo json_encode( $default_autoship_template_data ); ?>;</script>
  <!-- End Autoship Cloud Data Container --><?php
  echo apply_filters('autoship_header_script_data', ob_get_clean() );