$callback ) { if ( dirname( dirname( plugin_basename( $file ) ) ) == $plugin_dir ) { self::load( false ); call_user_func( $callback ); do_action( 'scb_activation_' . $plugin ); break; } } } public static function load( $do_callbacks = true ) { arsort( self::$candidates ); $file = key( self::$candidates ); $path = dirname( $file ) . '/'; foreach ( self::$classes[ $file ] as $class_name ) { if ( class_exists( $class_name ) ) { continue; } $fpath = $path . substr( $class_name, 3 ) . '.php'; if ( file_exists( $fpath ) ) { include $fpath; self::$loaded[] = $fpath; } } if ( $do_callbacks ) { foreach ( self::$callbacks as $callback ) { call_user_func( $callback ); } } } static function get_info() { arsort( self::$candidates ); return array( self::$loaded, self::$candidates ); } } endif; if ( ! function_exists( 'scb_init' ) ) : function scb_init( $callback = '' ) { scbLoad4::init( $callback ); } endif;