wp_simplepie_autoload()WP 3.5.0

WordPress autoloader for SimplePie.

No Hooks.

Return

null. Nothing (null).

Usage

wp_simplepie_autoload( $class );
$class(string) (required)
Class name.

Changelog

Since 3.5.0 Introduced.

wp_simplepie_autoload() code WP 6.6.2

function wp_simplepie_autoload( $class ) {
	if ( ! str_starts_with( $class, 'SimplePie_' ) )
		return;

	$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
	include $file;
}