-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkntnt-newsletter-feed.php
32 lines (26 loc) · 1.03 KB
/
kntnt-newsletter-feed.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
<?php
/**
* @wordpress-plugin
* Plugin Name: Kntnt Newsletter Feed
* Plugin URI: https://github.com/kntnt/kntnt-newsletter-feed
* GitHub Plugin URI: https://github.com/kntnt/kntnt-newsletter-feed
* Description: Provides a RSS feed for automatic newsletter generation.
* Version: 1.2.1
* Author: Thomas Barregren
* Author URI: https://www.kntnt.com/
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: kntnt-newsletter-feed
* Domain Path: /languages
*/
namespace Kntnt\Newsletter_Feed;
defined( 'WPINC' ) || die;
// To debug this plugin, set both WP_DEBUG and following constant to true.
// define( 'KNTNT_NEWSLETTER_FEED_DEBUG', true );
spl_autoload_register( function ( $class ) {
$ns_len = strlen( __NAMESPACE__ );
if ( 0 == substr_compare( $class, __NAMESPACE__, 0, $ns_len ) ) {
require_once __DIR__ . '/classes/' . strtr( strtolower( substr( $class, $ns_len + 1 ) ), '_', '-' ) . '.php';
}
} );
new Plugin();