forked from wp-plugins/subscribe-to-category
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscribe-to-category.php
35 lines (27 loc) · 1013 Bytes
/
subscribe-to-category.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
<?php
/*
Plugin Name: Subscribe to Category
Plugin URI: http://dcweb.nu
Description: Lets your visitor subscribe to posts for one or several categories.
Version: 1.2.1
Author: Daniel Söderström
Author URI: http://dcweb.nu/
License: GPLv2 or later
*/
// If this file is called directly, abort.
if ( !defined( 'WPINC' ) )
die();
define( 'STC_TEXTDOMAIN', 'stc_textdomain' );
define( 'STC_SLUG', 'stc' );
define( 'STC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'STC_PLUGIN_PATH', dirname( __FILE__ ) );
require_once( 'classes/class-main.php' );
require_once( 'classes/class-settings.php' );
require_once( 'classes/class-subscribe.php' );
// Create instance for main class
add_action( 'plugins_loaded', array( 'STC_Main', 'get_instance' ) );
// Register activation hook
register_activation_hook( __FILE__, array( 'STC_Main', 'activate' ) );
// Register deactivation hook
register_deactivation_hook( __FILE__, array( 'STC_Main', 'deactivate' ) );
?>