-
Notifications
You must be signed in to change notification settings - Fork 34
/
idea-factory.php
executable file
·47 lines (38 loc) · 1.46 KB
/
idea-factory.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
44
45
46
47
<?php
/**
*
* @package Idea_Factory
* @author Nick Haskins <[email protected]>
* @license GPL-2.0+
* @link http://nickhaskins.com
* @copyright 2015 Your Mom
*
* Plugin Name: Idea Factory
* Plugin URI: http://wpideafactory.com
* Description: Front-end user submission and voting system.
* Version: 1.2
* GitHub Plugin URI: https://github.com/tmeister/idea-factory
* Author: Nick Haskins
* Author URI: http://nickhaskins.com
* Text Domain: idea-factory
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* Github Branch: dev
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Set some constants
define('IDEA_FACTORY_VERSION', '1.1');
define('IDEA_FACTORY_DIR', plugin_dir_path( __FILE__ ));
define('IDEA_FACTORY_URL', plugins_url( '', __FILE__ ));
require_once( plugin_dir_path( __FILE__ ) . 'public/class-idea-factory.php' );
register_activation_hook( __FILE__, array( 'Idea_Factory', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Idea_Factory', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'Idea_Factory', 'get_instance' ) );
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-idea-factory-admin.php' );
add_action( 'plugins_loaded', array( 'Idea_Factory_Admin', 'get_instance' ) );
}