-
Notifications
You must be signed in to change notification settings - Fork 3
/
remote-data-blocks.php
52 lines (40 loc) · 1.57 KB
/
remote-data-blocks.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
49
50
51
52
<?php declare(strict_types = 1);
/**
* Plugin Name: Remote Data Blocks
* Plugin URI: https://remotedatablocks.com
* Description: Integrate external data sources into WordPress blocks, enabling dynamic content from APIs and databases within the block editor and within your content.
* Author: WPVIP
* Author URI: https://wpvip.com
* Text Domain: remote-data-blocks
* Version: 0.3.0
* Requires at least: 6.7
* Requires PHP: 8.1
*/
namespace RemoteDataBlocks;
defined( 'ABSPATH' ) || exit();
define( 'REMOTE_DATA_BLOCKS__PLUGIN_ROOT', __FILE__ );
define( 'REMOTE_DATA_BLOCKS__PLUGIN_DIRECTORY', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'REMOTE_DATA_BLOCKS__PLUGIN_VERSION', '0.3.0' );
define( 'REMOTE_DATA_BLOCKS__REST_NAMESPACE', 'remote-data-blocks/v1' );
// Autoloader
require_once __DIR__ . '/vendor/autoload.php';
// Other editor modifications
Editor\AdminNotices\AdminNotices::init();
Editor\DataBinding\BlockBindings::init();
Editor\DataBinding\FieldShortcode::init();
Editor\DataBinding\QueryOverrides::init();
Editor\BlockManagement\BlockRegistration::init();
Editor\BlockManagement\ConfigRegistry::init();
Editor\PatternEditor\PatternEditor::init();
// Analytics
Analytics\TracksAnalytics::init( new Analytics\EnvironmentConfig() );
// Example API
ExampleApi\ExampleApi::init();
// Load Settings Page
PluginSettings\PluginSettings::init();
// Integrations
Integrations\Airtable\AirtableIntegration::init();
Integrations\Shopify\ShopifyIntegration::init();
Integrations\VipBlockDataApi\VipBlockDataApi::init();
// REST endpoints
REST\RemoteDataController::init();