-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
42 lines (32 loc) · 1.04 KB
/
index.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: Fediverse Embeds
* Plugin URI: https://stefanbohacek.com/project/wordpress-plugin-for-fediverse-embeds/
* Description: Embed posts from the fediverse.
* Version: 1.5.5
* Author: stefanbohacek
* Text Domain: ftf_fediverse_embeds
*
* @package ftf-fediverse-embeds
*/
defined('ABSPATH') || exit;
/* External dependencies */
require_once __DIR__ . '/vendor/autoload.php';
/* Polyfills */
require_once __DIR__ . '/includes/polyfills.php';
/* Internal elper classes */
use FTF_Fediverse_Embeds\Embed_Posts;
use FTF_Fediverse_Embeds\Enqueue_Assets;
use FTF_Fediverse_Embeds\Media_Proxy;
use FTF_Fediverse_Embeds\Settings;
use FTF_Fediverse_Embeds\Site_Info;
use FTF_Fediverse_Embeds\Database;
$embed_posts_init = new Embed_Posts();
$enqueue_assets_init = new Enqueue_Assets();
$media_proxy_init = new Media_Proxy();
$settings_init = new Settings();
$site_info_init = new Site_Info();
register_activation_hook(__FILE__, function(){
$db = new Database();
$db->create_database();
});