autoship_logs_directory_path

(src/logger.php) Within the autoship_get_logs_directory() function, and allows devs to specify the location of the logs directory. By default the log directory path will be set to a autoship-logs folder within the wp upload directory.

**
 * Retrieves the current log file directory or url.
 * @uses wp_upload_dir()
 *
 * @param string $type Either the basedir or baseurl
 * @return string The base directory url or path
 */
function autoship_get_logs_directory( $type = 'basedir' ){
	$paths = wp_upload_dir( null, false );
  return apply_filters('autoship_logs_directory_path', $paths[$type] . '/autoship-logs/' );
}

Still need help? Contact Us Contact Us