-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
42 lines (34 loc) · 966 Bytes
/
plugin.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
40
41
42
<?php
/**
* Plugin Name: Genie Test Suite
* Plugin URI: https://geniepress.org
* Description: Test Suite for GeniePress framwork
* Version: 1.0.0
* Requires at least: 5.5
* Author: Sunil Jaiswal
* Author URI: https://geniepress.org
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
namespace GenieTest;
use GeniePress\Genie;
use GenieTest\PostTypes\Sample;
use GenieTest\PostTypes\Testimonial;
include_once('vendor/autoload.php');
Genie::createPlugin()
->enableAjaxHandler()
->enableApiHandler()
->enableBackgroundJobs()
->enableCacheBuster()
->enableDeploymentHandler()
->setHookPrefix('testimonials/')
->withComponents([
// Our main Plugin
Plugin::class,
// Our Post Types
Testimonial::class,
Sample::class,
// utilities
Shortcodes::class,
])
->start();