| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loads the whole FakerPress plugin. |
| 4 |
* |
| 5 |
* Please keep in mind that this is the only function that should be called from the main plugin file. |
| 6 |
* This function will load the plugin, all its dependencies, and it will boot the plugin. |
| 7 |
* Only function or class that is not namespaced. |
| 8 |
* |
| 9 |
* @since 0.6.0 |
| 10 |
*/ |
| 11 |
function fakerpress_load_plugin(): FakerPress\Plugin { |
| 12 |
require_once dirname( __FP_FILE__ ) . '/src/FakerPress/Plugin.php'; |
| 13 |
return FakerPress\Plugin::boot(); |
| 14 |
} |
| 15 |
|