-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathyawp-wim.php
76 lines (66 loc) · 1.48 KB
/
yawp-wim.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/*
Plugin Name: Widgets in Menu for WordPress
Plugin URI: http://wordpress.org/plugins/widgets-in-menu/
Description: Add widgets to any WordPress menu!
Version: 1.0.0
Requires at least: 3.5
Requires PHP: 5.2
Tested upto: 4.9.6
Author: saurabhshukla, yapapaya
Author URI: http://github.com/yapapaya/
Text Domain: yawp-wim
Domain Path: /languages
License: GNU General Public License v2 or later
*/
// prevent direct access
defined( 'ABSPATH' ) || exit;
/**
* The current version
*
* @since 0.1.0
*/
define( 'YAWP_WIM_VERSION', '1.0.0' );
/**
* Filters the prefix used in class/id attributes in html display.
*
* @since 0.1.0
*
* @param string $default_prefix The default prefix: 'yawp_wim'
*/
$attr_prefix = apply_filters( 'yawp_wim_attribute_prefix', 'yawp_wim' );
/**
*
* A string prefix for internal names and ids
*
* @since 0.1.0
*/
define( 'YAWP_WIM_PREFIX', $attr_prefix );
/**
* Plugin's file path
*
* @since 0.1.0
*/
define( 'YAWP_WIM_PATH', plugin_dir_path( __FILE__ ) );
/**
* Plugin's url path
*
* @since 0.1.0
*/
define( 'YAWP_WIM_URL', plugin_dir_url( __FILE__ ) );
/**
* Include main plugin class
*
* @since 0.1.0
*/
include_once YAWP_WIM_PATH . 'classes/class-yawp-wim.php';
/**
* Include walker class to override menu walker
*
* @since 0.1.0
*/
include_once YAWP_WIM_PATH . 'classes/class-yawp-wim-walker.php';
$yawp_wim = new YAWP_WIM();
$yawp_wim->hook();
$yawp_wim_walker = new YAWP_WIM_Walker();
$yawp_wim_walker->hook();