-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-ssr.php
28 lines (24 loc) · 868 Bytes
/
wp-ssr.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
<?php
/**
* Plugin Name: WP SSR
* Plugin URI: https://github.com/ColumbiaRoad/wp-ssr
* Description: Server-side rendering for JavaScript apps inside WordPress templates.
* Version: 1.1.3
* Author: Roope Merikukka
* Author uri: https://github.com/roopemerikukka/
* Text Domain: wp-ssr
* License: GPLv3
*/
namespace WPSSR;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) { exit; }
// Classes.
require 'class/class-init.php';
require 'class/class-post-type.php';
require 'class/class-settings.php';
require 'class/class-rest-api.php';
require 'class/class-render.php';
// Run installation function only once on activation.
add_action( 'plugins_loaded', [ 'WPSSR\Init', 'init' ] );
register_activation_hook( __FILE__, [ 'WPSSR\Init', 'on_activation' ] );
register_deactivation_hook( __FILE__, [ 'WPSSR\Init', 'on_deactivation' ] );