WC_Log_Handler_File::get_log_file_path( string $handle )

Get a log file path.


Description Description


Parameters Parameters

$handle

(Required) Log name.


Top ↑

Return Return

(bool|string) The log file path or false if path cannot be determined.


Top ↑

Source Source

File: includes/log-handlers/class-wc-log-handler-file.php

	public static function get_log_file_path( $handle ) {
		if ( function_exists( 'wp_hash' ) ) {
			return trailingslashit( WC_LOG_DIR ) . 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;
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.