-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
48 lines (40 loc) · 1.12 KB
/
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
43
44
45
46
47
48
<?php
/**
* Plugin Name: Genie Plugin Example
* Plugin URI: https://geniepress.org
* Description: An Example Plugin Using the GeniePress Framework
* Version: 1.0.2
* 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
* Text Domain: lnk7-genie-plugin
* Domain Path: /languages
*/
namespace Plugin;
use GeniePress\Genie;
use Plugin\PostTypes\Page;
use Plugin\PostTypes\Post;
use Plugin\PostTypes\Sample;
use Plugin\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
Post::class,
Page::class,
Testimonial::class,
Sample::class,
// utilities
Shortcodes::class,
])
->start();