-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtribe-embed.php
More file actions
32 lines (26 loc) · 931 Bytes
/
Copy pathtribe-embed.php
File metadata and controls
32 lines (26 loc) · 931 Bytes
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
<?php declare(strict_types=1);
/**
* Plugin Name: Tribe Embed
* Plugin URI: https://github.com/moderntribe/tribe-embed
* Description: A Tribe Embed Plugin.
* Version: 1.1.1
* Requires at least: 6.3
* Requires PHP: 8.0
* Author: Modern Tribe
* Author URI: https://github.com/moderntribe
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tribe
* Domain Path: /languages
* Update URI: false
*/
use Tribe\Tribe_Embed\Core;
include dirname( __FILE__ ) . '/vendor/autoload.php';
register_activation_hook( __FILE__, [ Core::class, 'activate' ] );
register_deactivation_hook( __FILE__, [ Core::class, 'deactivate' ] );
add_action( 'plugins_loaded', static function (): void {
tribe_embed_core()->init( __file__ );
} );
function tribe_embed_core(): Core {
return Core::instance();
}