-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprimary-categories.php
More file actions
28 lines (22 loc) · 870 Bytes
/
primary-categories.php
File metadata and controls
28 lines (22 loc) · 870 Bytes
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
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* Plugin Name: Primary Categories
* Description: Enebles user to select a primary category for posts and custom posts types and display posts based on their primary categories.
* Plugin URI: http://jacobmckinney.com/primary-categories
* Author: Jacob McKinney
* Version: 0.1.0
* Author URI: http://jacobmckinney.com/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* Copyright 2016 Jacob McKinney
*/
// Define constant for plugin path
define( 'PC_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
// include files containing meta box and shortcode
include PC_PLUGIN_PATH . 'classes/class-pc-meta-box.php';
include PC_PLUGIN_PATH . 'classes/class-pc-shortcode.php';
$meta_box = new PC_Meta_Box();
$shortcode = new PC_Shortcode();