-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-primary-term.php
47 lines (40 loc) · 1.02 KB
/
wp-primary-term.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
/*
Plugin Name: WP Primary Term
Plugin URI: https://profiles.wordpress.org/dipeshkakadiya/
Description: This plugin allow you to set primary term for posts & custom post type.
Version: 1.0
Author: dipesh.kakadiya<[email protected]>
Author URI: https://profiles.wordpress.org/dipeshkakadiya/
License: GPL2
Text Domain: wordpress-primary-term
Domain Path: /languages
@package WPPrimaryTerm
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
if ( ! defined( 'WPPT_PATH' ) ) {
/**
* Path to the plugin folder.
*
* @since 1.0
*/
define( 'WPPT_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
}
if ( ! defined( 'WPPT_URL' ) ) {
/**
* URL to the plugin folder.
*
* @since 1.0
*/
define( 'WPPT_URL', trailingslashit( plugins_url( '', __FILE__ ) ) );
}
require_once WPPT_PATH . 'includes/class-primary-term-public.php';
/**
* Load the admin class if its the admin dashboard
*/
if ( is_admin() ) {
require_once WPPT_PATH . 'admin/class-primary-term-admin.php';
}