PHP code example of motivast / wp-cli-seed-command
1. Go to this page and download the library: Download motivast/wp-cli-seed-command 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/ */
motivast / wp-cli-seed-command example snippets
use Motivast\WP_CLI\Seed\AbstractSeeder;
class Seeder extends AbstractSeeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
}
use Motivast\WP_CLI\Seed\AbstractSeeder;
er extends AbstractSeeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(Options::class);
$this->call(Pages::class);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.