-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Arnun edited this page Dec 31, 2016
·
3 revisions
Welcome to the Redbean_startup wiki!
simple where $company->readAction($item->company_id)->name
- Create Normal plugin's details.
/*
Plugin Name: MyPlugin
Description: This is just description
Version: 1.0.0
Plugin URI: https://github.com/selfclose/wp_infinite/
Author: selfclose
Author URI: https://selfclose.github.com/
This is another description.
*/
And then We have 2 choice...
- If use composer : create composer.json file.
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/selfclose/wp_infinite"
}
],
"require-dev": {
"selfclose/wp_infinite": "dev-master"
}
}
- Next use command line locate your plugin folder and install
$ cd wp-content/plugins/{your plugin name}/
$ composer install
and require autoloader in your plugin index file
- (use composer autoloader)
require_once __DIR__ . '/vendor/autoload.php';
- don't use composer (use our autoloader)
require_once __DIR__ . '/wp_infinite/autoload.php';
- run composer install
$ composer install
write more soon....