WC_Log_Handler_File::get_log_file_path()
Get a log file path.
Method of the class: WC_Log_Handler_File{}
No Hooks.
Return
true|false|String
. The log file path or false if path cannot be determined.
Usage
$result = WC_Log_Handler_File::get_log_file_path( $handle );
- $handle(string) (required)
- Log name.
WC_Log_Handler_File::get_log_file_path() WC Log Handler File::get log file path code WC 9.3.3
public static function get_log_file_path( $handle ) { $log_directory = LoggingUtil::get_log_directory(); if ( function_exists( 'wp_hash' ) ) { return trailingslashit( $log_directory ) . self::get_log_file_name( $handle ); } else { wc_doing_it_wrong( __METHOD__, __( 'This method should not be called before plugins_loaded.', 'woocommerce' ), '3.0' ); return false; } }