PHP code example of madeinitalyslc / mit-wp-plugin
1. Go to this page and download the library: Download madeinitalyslc/mit-wp-plugin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
madeinitalyslc / mit-wp-plugin example snippets
/**
* Plugin Name: Stucture
*/
use MadeInItalySLC\WP\Plugin\PluginFactory;
if (file_exists( __DIR__.'/vendor/autoload.php')) {
actory::create('stucture-wp-plugin');
}
return $stucture_wp_plugin;
}
$stucture = StucturePlugin();