WordPress at a glance
function is not described


PHP_Autoloader::load_class() public WC 1.0

Loads a class file if one could be found.

Note: This function is static so that the autoloader can be easily unregistered. If it was a class method we would have to unwrap the object to check the namespace.

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

No Hooks.


true|false. Indicates whether or not a class file was loaded.


$result = PHP_Autoloader::load_class( $class_name );
$class_name(string) (required)
The name of the class to autoload.

Code of PHP_Autoloader::load_class() WC 5.3.0

public static function load_class( $class_name ) {
	global $jetpack_autoloader_loader;
	if ( ! isset( $jetpack_autoloader_loader ) ) {

	$file = $jetpack_autoloader_loader->find_class_file( $class_name );
	if ( ! isset( $file ) ) {
		return false;

	require $file;
	return true;