/
dynamic-taxonomy-menu-items.php
45 lines (39 loc) · 1.48 KB
/
dynamic-taxonomy-menu-items.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
<?php
/**
* Dynamic Taxonomy Menu Items for WordPress
*
* @package DynamicTaxonomy
* @author Richard Coffee <richard.coffee@rtcenterprises.net>
* @copyright 2020 Richard Coffee
* @license GPLv3 <https://www.gnu.org/licenses/gpl-3.0.html>
* @link https://github.com/RichardCoffee/dynamic-taxonomy-menu-items
*
* @wordpress-plugin
* Plugin Name: Dynamic Taxonomy Menu Items
* Plugin URI: https://github.com/RichardCoffee/dynamic-taxonomy-menu-items
* Description: Inserts dynamic submenus of taxonomy items into WordPress menus.
* Tags: menu, taxonomy
* Version: 1.1.1
* Requires at least: 4.7.0
* Tested up to: 5.4.1
* Requires PHP: 5.3.6
* Author: Richard Coffee
* Author URI: https://rtcenterprises.net
* Text Domain: dyntaxmi
* License: GPL v3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Domain Path: /languages
*/
defined( 'ABSPATH' ) || exit;
/*
* @link https://github.com/helgatheviking/Nav-Menu-Roles/blob/master/nav-menu-roles.php
if ( ! defined('ABSPATH') || ! function_exists( 'is_admin' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
*/
define( 'DYNTAXMI_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once( 'functions.php' );
$dyntaxmi = DynTaxMI_Plugin_DynTaxMI::get_instance( array( 'file' => __FILE__ ) );
register_activation_hook( __FILE__, array( 'DynTaxMI_Register_Plugin', 'activate' ) );