-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnewspack-network.php
43 lines (36 loc) · 1.04 KB
/
newspack-network.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
<?php
/**
* Plugin Name: Newspack Network
* Description: The Newspack Network plugin.
* Version: 2.3.4
* Author: Automattic
* Author URI: https://newspack.com/
* License: GPL3
* Requires PHP: 8.1
* Text Domain: newspack-network
* Domain Path: /languages/
*
* @package newspack-network
*/
defined( 'ABSPATH' ) || exit;
// Define NEWSPACK_NETWORK_PLUGIN_DIR.
if ( ! defined( 'NEWSPACK_NETWORK_PLUGIN_DIR' ) ) {
define( 'NEWSPACK_NETWORK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
// Define NEWSPACK_NETWORK_PLUGIN_FILE.
if ( ! defined( 'NEWSPACK_NETWORK_PLUGIN_FILE' ) ) {
define( 'NEWSPACK_NETWORK_PLUGIN_FILE', __FILE__ );
}
/**
* The role added by Newspack Network plugin for readers propagated from other sites.
*/
define( 'NEWSPACK_NETWORK_READER_ROLE', 'network_reader' );
// Load language files.
add_action(
'init',
function () {
load_plugin_textdomain( 'newspack-network', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
);
require_once __DIR__ . '/vendor/autoload.php';
Newspack_Network\Initializer::init();