wc_get_log_file_path

Get a log file path.

Description

(string) wc_get_log_file_path( (string) $handle ); 

Returns (string)

the log file path.

Parameters (1)

0. $handle (string)
The handle.

Usage

  1. if ( !function_exists( 'wc_get_log_file_path' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-core-functions.php'; 
  3.  
  4. // The handle. 
  5. $handle = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_get_log_file_path($handle); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-core-functions.php  
  1. function wc_get_log_file_path( $handle ) { 
  2. return WC_Log_Handler_File::get_log_file_path( $handle );