WC_Autoloader::get_file_name_from_class()
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() 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'; }