wp_simplepie_autoload

WordPress autoloader for SimplePie.

Description

wp_simplepie_autoload( $class ); 

Parameters (1)

0. $class
The class.

Usage

  1. if ( !function_exists( 'wp_simplepie_autoload' ) ) { 
  2. require_once ABSPATH . WPINC . '/class-simplepie.php'; 
  3.  
  4. // The class. 
  5. $class = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_simplepie_autoload($class); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/class-simplepie.php  
  1. function wp_simplepie_autoload( $class ) { 
  2. if ( 0 !== strpos( $class, 'SimplePie_' ) ) 
  3. return; 
  4.  
  5. $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; 
  6. include( $file );