WordPress at Your Fingertips
function is not described

WC_Autoloader::get_file_name_from_class() private WC 1.0

Take a class name and turn it into a file name.

{} It's a method of the class: WC_Autoloader{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_file_name_from_class( $class );
$class(string) (required)
Class name.

Code of WC_Autoloader::get_file_name_from_class() WC 5.9.0

private function get_file_name_from_class( $class ) {
	return 'class-' . str_replace( '_', '-', $class ) . '.php';
}