WC_Admin_Status::get_log_file_handle()public staticWC 1.0

Return the log file handle.

Method of the class: WC_Admin_Status{}

No Hooks.

Return

String.

Usage

$result = WC_Admin_Status::get_log_file_handle( $filename );
$filename(string) (required)
Filename to get the handle for.

WC_Admin_Status::get_log_file_handle() code WC 8.6.1

public static function get_log_file_handle( $filename ) {
	return substr( $filename, 0, strlen( $filename ) > 48 ? strlen( $filename ) - 48 : strlen( $filename ) - 4 );
}