PHP code example of j7-dev / wp-plugin-trait
1. Go to this page and download the library: Download j7-dev/wp-plugin-trait 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/ */
j7-dev / wp-plugin-trait example snippets
final class Bootstrap {
use \J7\WpUtils\Traits\PluginTrait;
public function __construct() {
$this->init([
'app_name' => 'My App',
'github_repo' => 'https://github.com/xxx/xxx',
'callback' => [ $this, 'run' ],
]);
}
}