-
Notifications
You must be signed in to change notification settings - Fork 6
/
newspack-listings.php
43 lines (37 loc) · 1.79 KB
/
newspack-listings.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 Listings
* Plugin URI: https://newspack.com
* Description: Listings and directories for Newspack sites.
* Author: Automattic
* Author URI: https://newspack.com
* Text Domain: newspack-listings
* Domain Path: /languages
* Version: 3.1.0
*
* @package Newspack_Listings
*/
defined( 'ABSPATH' ) || exit;
// Define NEWSPACK_LISTINGS_PLUGIN_FILE.
if ( ! defined( 'NEWSPACK_LISTINGS_PLUGIN_FILE' ) ) {
define( 'NEWSPACK_LISTINGS_FILE', __FILE__ );
define( 'NEWSPACK_LISTINGS_PLUGIN_FILE', plugin_dir_path( NEWSPACK_LISTINGS_FILE ) );
define( 'NEWSPACK_LISTINGS_URL', plugin_dir_url( NEWSPACK_LISTINGS_FILE ) );
define( 'NEWSPACK_LISTINGS_VERSION', '3.1.0' );
}
// Include plugin resources.
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/vendor/autoload.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/utils.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-settings.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-core.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-blocks.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-block-patterns.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-api.php';
// Enable experimental/in-progress self-serve listings functionality.
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-featured.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/class-products.php';
// CLI importer files.
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/importer/importer-utils.php';
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/importer/class-importer.php';
// Migration utilities.
require_once NEWSPACK_LISTINGS_PLUGIN_FILE . '/includes/migration/class-migration.php';