forked from deliciousbrains/wp-testimonials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-testimonials.php
22 lines (18 loc) · 959 Bytes
/
wp-testimonials.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Plugin Name: Delicious Brains WP Testimonials
* Plugin URI: https://deliciousbrains.com
* Description: WordPress must-use plugin for managing testimonials, importing from tweets and displaying them.
* Author: Delicious Brains
* Version: 1.3
* Author URI: https://deliciousbrains.com
**/
define( 'DBI_TESTIMONIAL_BASE_DIR', WPMU_PLUGIN_DIR . '/' . basename( __DIR__ ) );
define( 'DBI_TESTIMONIAL_PLACEHOLDER_URL', WPMU_PLUGIN_URL . '/' . basename( __DIR__ ) . '/assets/images/dbi-testimonial-default-avatar.png' );
( new \DeliciousBrains\WPTestimonials\PostType\Testimonial() )->init();
if ( is_admin() ) {
( new \DeliciousBrains\WPTestimonials\Admin\ACF() )->init();
if ( defined( 'DBI_TWITTER_CONSUMER_KEY' ) && defined( 'DBI_TWITTER_CONSUMER_SECRET' ) && defined( 'DBI_TWITTER_ACCESS_TOKEN' ) && defined( 'DBI_TWITTER_ACCESS_TOKEN_SECRET' ) ) {
( new \DeliciousBrains\WPTestimonials\Admin\Page\TestimonialImport() )->init();
}
}