_DIR_. '/vendor/autoload.php'

What do I put before the DIR, and do I also replace vendor with the actual vendor before autoload.php.

This part I don't quite understand, can someone explain this.

  • This is mostly done to make sure composer dependencies can be loaded and only for plugins which haven't been installed through composer (so zip download etc).

    If you're using Elgg 3.0 or up the `vendor/autoload.php` is automaticly included when your plugin is active. So no need to do this yourself.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking