Experiment with require statement, because if we are here, then class didnt existed.

This commit is contained in:
Vedanshu Jain 2024-09-17 18:46:33 +05:30
parent 223172a080
commit 775537a74a
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class WC_Autoloader {
*/
private function load_file( $path ) {
if ( $path && is_readable( $path ) ) {
include_once $path;
require $path;
return true;
}
return false;