WC_Autoloader::get_file_name_from_class()privateWC 1.0

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

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.

WC_Autoloader::get_file_name_from_class() code WC 9.4.2

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