-
Notifications
You must be signed in to change notification settings - Fork 0
/
kntnt-cta.php
32 lines (26 loc) · 1 KB
/
kntnt-cta.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 Call To Action (CTA)
* Plugin URI: https://github.com/kntnt/kntnt-cta
* GitHub Plugin URI: https://github.com/kntnt/kntnt-cta
* Description: Provides post type, taxonomy and shortcode to allow dynamic insertion of Call To Action (CTA).
* Version: 1.0.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-cta
* Domain Path: /languages
*/
namespace Kntnt\CTA;
defined( 'WPINC' ) || die;
// Uncomment following line to debug this plugin.
// define( 'KNTNT_CTA_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();