-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathnewspack.php
34 lines (28 loc) · 890 Bytes
/
newspack.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
<?php
/**
* Plugin Name: Newspack
* Description: An advanced open-source publishing and revenue-generating platform for news organizations.
* Version: 5.10.6
* Author: Automattic
* Author URI: https://newspack.com/
* License: GPL2
* Text Domain: newspack-plugin
* Domain Path: /languages/
*
* @package Newspack_Plugin
*/
defined( 'ABSPATH' ) || exit;
define( 'NEWSPACK_PLUGIN_VERSION', '5.10.6' );
// Define NEWSPACK_PLUGIN_FILE.
if ( ! defined( 'NEWSPACK_PLUGIN_FILE' ) ) {
define( 'NEWSPACK_PLUGIN_FILE', __FILE__ );
}
// Define NEWSPACK_PLUGIN_BASEDIR.
if ( ! defined( 'NEWSPACK_PLUGIN_BASEDIR' ) ) {
define( 'NEWSPACK_PLUGIN_BASEDIR', dirname( plugin_basename( NEWSPACK_PLUGIN_FILE ) ) );
}
require_once 'vendor/autoload.php';
// Include the main Newspack class.
if ( ! class_exists( 'Newspack' ) ) {
include_once __DIR__ . '/includes/class-newspack.php';
}