-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestimonials.php
30 lines (30 loc) · 1.25 KB
/
testimonials.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
<?php
/*
Plugin Name: Simple Google Testimonials
Plugin URI: https://tropicaljuice.nl/
Description: Users can add testimonials on front-end of website. You can manage these as 'regular' posts at the wp-admin.
Version: 1.0
Author: Tropical Juice
Author URI: https://tropicaljuice.nl/
Text Domain: tropical_testimonials
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: tropical_testimonials
Domain Path: translations
*/
if (! defined('ABSPATH')) {
exit;
}
define('TROPICAL_TESTIMONIALS_VERSION', '1.0');
define('TROPICAL_TESTIMONIALS_MIN_WP_VERSION', '3.7');
define('TROPICAL_TESTIMONIALS_TEXT_DOMAIN', 'tropical_testimonials');
define('TROPICAL_TESTIMONIALS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
define('TROPICAL_TESTIMONIALS_PLUGIN_DIR', basename(dirname(__FILE__)));
define('TROPICAL_TESTIMONIALS_PLUGIN_URI', plugin_dir_url(__FILE__));
define('TROPICAL_TESTIMONIALS_PLUGIN_FILE_NAME', plugin_basename(__FILE__));
require_once(TROPICAL_TESTIMONIALS_PLUGIN_DIR_PATH . 'testimonials.class.php');
add_action('init', array( 'Testimonials', 'registerPostTypes'));
add_action('init', array( 'Testimonials', 'init' ));
if (is_admin() || (defined('WP_CLI') && WP_CLI)) {
//admin options here
}