forked from Yapapaya/Widgets-In-Menu-for-WordPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yawp-wim.php
60 lines (50 loc) · 1.25 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
<?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: 0.2.1
Author: saurabhshukla, yapapaya
Author URI: http://github.com/yapapaya/
Text Domain: yawp_wim
Domain Path: /languages
License: GNU General Public License v2 or later
*/
/**
*
* The current version
*/
define( 'YAWP_WIM_VERSION', '0.2.1' );
/**
* 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
*/
define( 'YAWP_WIM_PREFIX', $attr_prefix );
/**
* Plugin's file path
*/
define( 'YAWP_WIM_PATH', plugin_dir_path( __FILE__ ) );
/**
* Plugin's url path
*/
define( 'YAWP_WIM_URL', plugin_dir_url( __FILE__ ) );
/**
* Include main plugin class
*/
include_once YAWP_WIM_PATH . 'classes/class-yawp-wim.php';
/**
* Include walker class to override menu walker
*/
include_once YAWP_WIM_PATH . 'classes/class-yawp-wim-walker.php';
$yawp_wim = new YAWP_WIM();
$yawp_wim->init();
$yawp_wim_walker = new YAWP_WIM_Walker();
$yawp_wim_walker->init();