-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframes-integration-for-farcaster.php
48 lines (39 loc) · 1.58 KB
/
frames-integration-for-farcaster.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
/**
* Frames Integration for Farcaster
*
* @package Farcaster_WP
* @author Davis Shaver
* @license: GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Frames Integration for Farcaster
* Plugin URI: https://davisshaver.com/frames-integration-for-farcaster/
* Description: Frames Integration for Farcaster connects your WordPress site to Farcaster.
* Version: 0.0.43
* Author: Davis Shaver
* Author URI: https://davisshaver.com/
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: frames-integration-for-farcaster
* Tags: WordPress, web3, Farcaster, Ethereum
* Contributors: davisshaver
*/
defined( 'ABSPATH' ) || exit;
define( 'FARCASTER_WP_VERSION', '0.0.43' );
define( 'FARCASTER_WP_API_NAMESPACE', 'farcaster-wp/v1' );
define( 'FARCASTER_WP_API_URL', get_site_url() . '/wp-json/' . FARCASTER_WP_API_NAMESPACE );
// Define FARCASTER_WP_PLUGIN_DIR.
if ( ! defined( 'FARCASTER_WP_PLUGIN_DIR' ) ) {
define( 'FARCASTER_WP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
// Define FARCASTER_WP_PLUGIN_FILE.
if ( ! defined( 'FARCASTER_WP_PLUGIN_FILE' ) ) {
define( 'FARCASTER_WP_PLUGIN_FILE', __FILE__ );
}
// Load language files.
load_plugin_textdomain( 'frames-integration-for-farcaster', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
require_once __DIR__ . '/vendor/autoload.php';
// Include non-class helper functions.
require_once __DIR__ . '/includes/helpers.php';
Farcaster_WP\Initializer::init();