autoship_file_name_handler

(src/logger.php) This filter allows the hash and file name for the Autoship Cloud Logs to be changed, residing within the autoship_get_log_filename() function

/**
 * Retrieves the base filename for log files.
 */
function autoship_get_log_filename(){

  $handle = apply_filters( 'autoship_file_name_handle', strtolower( autoship_get_site_info('name') ) );
  $date_suffix = date( 'Y-m-d' );
  $hash_suffix = wp_hash( $handle );
  return sanitize_file_name( implode( '-', array( $handle, $date_suffix, $hash_suffix, 'autoship' ) ) . '.log' );

}

Still need help? Contact Us Contact Us