-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-cli-comments-generator.php
39 lines (35 loc) · 1.35 KB
/
wp-cli-comments-generator.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Plugin Name: WP CLI Comments generator
* Plugin URI: https://sematico.com
* Description: WP CLI Command to generate random comments for all posts on the site using pre-existing users.
* Author: Alessandro Tesoro
* Author URI: https://sematico.com
* Text Domain: wp-cli-comments-generator
* Domain Path: /languages
* Version: 1.0.0
*
* WP CLI Comments Generator is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* WP CLI Comments Generator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WP CLI Comments Generator. If not, see <http://www.gnu.org/licenses/>.
*
* @package wp-cli-comments-generator
* @author Sematico LTD
*/
namespace Pressmodo\CLI;
if ( ! class_exists( 'WP_CLI' ) ) {
return;
}
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require dirname( __FILE__ ) . '/vendor/autoload.php';
}
require_once dirname( __FILE__ ) . '/command.php';