Version Description
- 4.2 compatible
Download this release
Release Info
Developer | krozero199 |
Plugin | WP Custom Widget area |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- README.txt +8 -2
- admin/class-wp-custom-widget-area-admin.php +6 -6
- admin/partials/cwa-admin-display.php +1 -1
- includes/class-custom-widget-area.php +14 -14
- includes/class-wp-custom-widget-area-activator.php +3 -3
- includes/class-wp-custom-widget-area-deactivator.php +3 -3
- includes/class-wp-custom-widget-area-i18n.php +5 -5
- includes/class-wp-custom-widget-area-loader.php +8 -8
- includes/config.php +1 -1
- uninstall.php +1 -1
- wp-custom-widget-area.php +3 -3
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: krozero
|
|
3 |
Donate link: http://kishorkhambu.com.np/donation
|
4 |
Tags: widget area, custom widget area, widget, simple widget area, custom sidebar, dynamic sidebar
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -45,6 +45,9 @@ A Wordpress Plugin to create a custom widget areas or sidebar easily. It allows
|
|
45 |
|
46 |
== Changelog ==
|
47 |
|
|
|
|
|
|
|
48 |
= 1.0.3 =
|
49 |
* fix for "code conflict with CoSchedule plugin"
|
50 |
|
@@ -63,6 +66,9 @@ A Wordpress Plugin to create a custom widget areas or sidebar easily. It allows
|
|
63 |
|
64 |
== Upgrade Notice ==
|
65 |
|
|
|
|
|
|
|
66 |
= 1.0.3 =
|
67 |
* code conflict fix
|
68 |
|
3 |
Donate link: http://kishorkhambu.com.np/donation
|
4 |
Tags: widget area, custom widget area, widget, simple widget area, custom sidebar, dynamic sidebar
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.0.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 1.0.4 =
|
49 |
+
* 4.2 compatible
|
50 |
+
|
51 |
= 1.0.3 =
|
52 |
* fix for "code conflict with CoSchedule plugin"
|
53 |
|
66 |
|
67 |
== Upgrade Notice ==
|
68 |
|
69 |
+
= 1.0.4 =
|
70 |
+
* 4.2 compatible
|
71 |
+
|
72 |
= 1.0.3 =
|
73 |
* code conflict fix
|
74 |
|
admin/class-wp-custom-widget-area-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* The dashboard-specific functionality of the plugin.
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
-
* @since 1.0.
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/admin
|
@@ -27,7 +27,7 @@ class Custom_Widget_Area_Admin {
|
|
27 |
/**
|
28 |
* The ID of this plugin.
|
29 |
*
|
30 |
-
* @since 1.0.
|
31 |
* @access private
|
32 |
* @var string $plugin_name The ID of this plugin.
|
33 |
*/
|
@@ -36,7 +36,7 @@ class Custom_Widget_Area_Admin {
|
|
36 |
/**
|
37 |
* The version of this plugin.
|
38 |
*
|
39 |
-
* @since 1.0.
|
40 |
* @access private
|
41 |
* @var string $version The current version of this plugin.
|
42 |
*/
|
@@ -45,7 +45,7 @@ class Custom_Widget_Area_Admin {
|
|
45 |
/**
|
46 |
* Initialize the class and set its properties.
|
47 |
*
|
48 |
-
* @since 1.0.
|
49 |
* @var string $plugin_name The name of this plugin.
|
50 |
* @var string $version The version of this plugin.
|
51 |
*/
|
@@ -216,7 +216,7 @@ class Custom_Widget_Area_Admin {
|
|
216 |
/**
|
217 |
* Register the stylesheets for the Dashboard.
|
218 |
*
|
219 |
-
* @since 1.0.
|
220 |
*/
|
221 |
public function enqueue_styles() {
|
222 |
|
@@ -239,7 +239,7 @@ class Custom_Widget_Area_Admin {
|
|
239 |
/**
|
240 |
* Register the JavaScript for the dashboard.
|
241 |
*
|
242 |
-
* @since 1.0.
|
243 |
*/
|
244 |
public function enqueue_scripts() {
|
245 |
|
4 |
* The dashboard-specific functionality of the plugin.
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
+
* @since 1.0.4
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/admin
|
27 |
/**
|
28 |
* The ID of this plugin.
|
29 |
*
|
30 |
+
* @since 1.0.4
|
31 |
* @access private
|
32 |
* @var string $plugin_name The ID of this plugin.
|
33 |
*/
|
36 |
/**
|
37 |
* The version of this plugin.
|
38 |
*
|
39 |
+
* @since 1.0.4
|
40 |
* @access private
|
41 |
* @var string $version The current version of this plugin.
|
42 |
*/
|
45 |
/**
|
46 |
* Initialize the class and set its properties.
|
47 |
*
|
48 |
+
* @since 1.0.4
|
49 |
* @var string $plugin_name The name of this plugin.
|
50 |
* @var string $version The version of this plugin.
|
51 |
*/
|
216 |
/**
|
217 |
* Register the stylesheets for the Dashboard.
|
218 |
*
|
219 |
+
* @since 1.0.4
|
220 |
*/
|
221 |
public function enqueue_styles() {
|
222 |
|
239 |
/**
|
240 |
* Register the JavaScript for the dashboard.
|
241 |
*
|
242 |
+
* @since 1.0.4
|
243 |
*/
|
244 |
public function enqueue_scripts() {
|
245 |
|
admin/partials/cwa-admin-display.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* This file is used to markup the public-facing aspects of the plugin.
|
7 |
*
|
8 |
* @link http://example.com
|
9 |
-
* @since 1.0.
|
10 |
*
|
11 |
* @package Custom_Widget_Area
|
12 |
* @subpackage Custom_Widget_Area/admin/partials
|
6 |
* This file is used to markup the public-facing aspects of the plugin.
|
7 |
*
|
8 |
* @link http://example.com
|
9 |
+
* @since 1.0.4
|
10 |
*
|
11 |
* @package Custom_Widget_Area
|
12 |
* @subpackage Custom_Widget_Area/admin/partials
|
includes/class-custom-widget-area.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* public-facing side of the site and the dashboard.
|
8 |
*
|
9 |
* @link http://example.com
|
10 |
-
* @since 1.0.
|
11 |
*
|
12 |
* @package Custom_Widget_Area
|
13 |
* @subpackage Custom_Widget_Area/includes
|
@@ -22,7 +22,7 @@
|
|
22 |
* Also maintains the unique identifier of this plugin as well as the current
|
23 |
* version of the plugin.
|
24 |
*
|
25 |
-
* @since 1.0.
|
26 |
* @package Custom_Widget_Area
|
27 |
* @subpackage Custom_Widget_Area/includes
|
28 |
* @author Your Name <email@example.com>
|
@@ -33,7 +33,7 @@ class Custom_Widget_Area {
|
|
33 |
* The loader that's responsible for maintaining and registering all hooks that power
|
34 |
* the plugin.
|
35 |
*
|
36 |
-
* @since 1.0.
|
37 |
* @access protected
|
38 |
* @var Custom_Widget_Area_Loader $loader Maintains and registers all hooks for the plugin.
|
39 |
*/
|
@@ -42,7 +42,7 @@ class Custom_Widget_Area {
|
|
42 |
/**
|
43 |
* The unique identifier of this plugin.
|
44 |
*
|
45 |
-
* @since 1.0.
|
46 |
* @access protected
|
47 |
* @var string $plugin_name The string used to uniquely identify this plugin.
|
48 |
*/
|
@@ -51,7 +51,7 @@ class Custom_Widget_Area {
|
|
51 |
/**
|
52 |
* The current version of the plugin.
|
53 |
*
|
54 |
-
* @since 1.0.
|
55 |
* @access protected
|
56 |
* @var string $version The current version of the plugin.
|
57 |
*/
|
@@ -64,12 +64,12 @@ class Custom_Widget_Area {
|
|
64 |
* Load the dependencies, define the locale, and set the hooks for the Dashboard and
|
65 |
* the public-facing side of the site.
|
66 |
*
|
67 |
-
* @since 1.0.
|
68 |
*/
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'wp-custom-widget-area';
|
72 |
-
$this->version = '1.0.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
@@ -91,7 +91,7 @@ class Custom_Widget_Area {
|
|
91 |
* Create an instance of the loader which will be used to register the hooks
|
92 |
* with WordPress.
|
93 |
*
|
94 |
-
* @since 1.0.
|
95 |
* @access private
|
96 |
*/
|
97 |
private function load_dependencies() {
|
@@ -125,7 +125,7 @@ class Custom_Widget_Area {
|
|
125 |
* Uses the Custom_Widget_Area_i18n class in order to set the domain and to register the hook
|
126 |
* with WordPress.
|
127 |
*
|
128 |
-
* @since 1.0.
|
129 |
* @access private
|
130 |
*/
|
131 |
private function set_locale() {
|
@@ -141,7 +141,7 @@ class Custom_Widget_Area {
|
|
141 |
* Register all of the hooks related to the dashboard functionality
|
142 |
* of the plugin.
|
143 |
*
|
144 |
-
* @since 1.0.
|
145 |
* @access private
|
146 |
*/
|
147 |
private function define_admin_hooks() {
|
@@ -171,7 +171,7 @@ class Custom_Widget_Area {
|
|
171 |
/**
|
172 |
* Run the loader to execute all of the hooks with WordPress.
|
173 |
*
|
174 |
-
* @since 1.0.
|
175 |
*/
|
176 |
public function run() {
|
177 |
$this->loader->run();
|
@@ -181,7 +181,7 @@ class Custom_Widget_Area {
|
|
181 |
* The name of the plugin used to uniquely identify it within the context of
|
182 |
* WordPress and to define internationalization functionality.
|
183 |
*
|
184 |
-
* @since 1.0.
|
185 |
* @return string The name of the plugin.
|
186 |
*/
|
187 |
public function get_plugin_name() {
|
@@ -191,7 +191,7 @@ class Custom_Widget_Area {
|
|
191 |
/**
|
192 |
* The reference to the class that orchestrates the hooks with the plugin.
|
193 |
*
|
194 |
-
* @since 1.0.
|
195 |
* @return Custom_Widget_Area_Loader Orchestrates the hooks of the plugin.
|
196 |
*/
|
197 |
public function get_loader() {
|
@@ -201,7 +201,7 @@ class Custom_Widget_Area {
|
|
201 |
/**
|
202 |
* Retrieve the version number of the plugin.
|
203 |
*
|
204 |
-
* @since 1.0.
|
205 |
* @return string The version number of the plugin.
|
206 |
*/
|
207 |
public function get_version() {
|
7 |
* public-facing side of the site and the dashboard.
|
8 |
*
|
9 |
* @link http://example.com
|
10 |
+
* @since 1.0.4
|
11 |
*
|
12 |
* @package Custom_Widget_Area
|
13 |
* @subpackage Custom_Widget_Area/includes
|
22 |
* Also maintains the unique identifier of this plugin as well as the current
|
23 |
* version of the plugin.
|
24 |
*
|
25 |
+
* @since 1.0.4
|
26 |
* @package Custom_Widget_Area
|
27 |
* @subpackage Custom_Widget_Area/includes
|
28 |
* @author Your Name <email@example.com>
|
33 |
* The loader that's responsible for maintaining and registering all hooks that power
|
34 |
* the plugin.
|
35 |
*
|
36 |
+
* @since 1.0.4
|
37 |
* @access protected
|
38 |
* @var Custom_Widget_Area_Loader $loader Maintains and registers all hooks for the plugin.
|
39 |
*/
|
42 |
/**
|
43 |
* The unique identifier of this plugin.
|
44 |
*
|
45 |
+
* @since 1.0.4
|
46 |
* @access protected
|
47 |
* @var string $plugin_name The string used to uniquely identify this plugin.
|
48 |
*/
|
51 |
/**
|
52 |
* The current version of the plugin.
|
53 |
*
|
54 |
+
* @since 1.0.4
|
55 |
* @access protected
|
56 |
* @var string $version The current version of the plugin.
|
57 |
*/
|
64 |
* Load the dependencies, define the locale, and set the hooks for the Dashboard and
|
65 |
* the public-facing side of the site.
|
66 |
*
|
67 |
+
* @since 1.0.4
|
68 |
*/
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'wp-custom-widget-area';
|
72 |
+
$this->version = '1.0.4';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
91 |
* Create an instance of the loader which will be used to register the hooks
|
92 |
* with WordPress.
|
93 |
*
|
94 |
+
* @since 1.0.4
|
95 |
* @access private
|
96 |
*/
|
97 |
private function load_dependencies() {
|
125 |
* Uses the Custom_Widget_Area_i18n class in order to set the domain and to register the hook
|
126 |
* with WordPress.
|
127 |
*
|
128 |
+
* @since 1.0.4
|
129 |
* @access private
|
130 |
*/
|
131 |
private function set_locale() {
|
141 |
* Register all of the hooks related to the dashboard functionality
|
142 |
* of the plugin.
|
143 |
*
|
144 |
+
* @since 1.0.4
|
145 |
* @access private
|
146 |
*/
|
147 |
private function define_admin_hooks() {
|
171 |
/**
|
172 |
* Run the loader to execute all of the hooks with WordPress.
|
173 |
*
|
174 |
+
* @since 1.0.4
|
175 |
*/
|
176 |
public function run() {
|
177 |
$this->loader->run();
|
181 |
* The name of the plugin used to uniquely identify it within the context of
|
182 |
* WordPress and to define internationalization functionality.
|
183 |
*
|
184 |
+
* @since 1.0.4
|
185 |
* @return string The name of the plugin.
|
186 |
*/
|
187 |
public function get_plugin_name() {
|
191 |
/**
|
192 |
* The reference to the class that orchestrates the hooks with the plugin.
|
193 |
*
|
194 |
+
* @since 1.0.4
|
195 |
* @return Custom_Widget_Area_Loader Orchestrates the hooks of the plugin.
|
196 |
*/
|
197 |
public function get_loader() {
|
201 |
/**
|
202 |
* Retrieve the version number of the plugin.
|
203 |
*
|
204 |
+
* @since 1.0.4
|
205 |
* @return string The version number of the plugin.
|
206 |
*/
|
207 |
public function get_version() {
|
includes/class-wp-custom-widget-area-activator.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Fired during plugin activation
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
-
* @since 1.0.
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
@@ -15,7 +15,7 @@
|
|
15 |
*
|
16 |
* This class defines all code necessary to run during the plugin's activation.
|
17 |
*
|
18 |
-
* @since 1.0.
|
19 |
* @package Custom_Widget_Area
|
20 |
* @subpackage Custom_Widget_Area/includes
|
21 |
* @author Your Name <email@example.com>
|
@@ -27,7 +27,7 @@ class Custom_Widget_Area_Activator {
|
|
27 |
*
|
28 |
* Long Description.
|
29 |
*
|
30 |
-
* @since 1.0.
|
31 |
*/
|
32 |
public static function activate() {
|
33 |
|
4 |
* Fired during plugin activation
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
+
* @since 1.0.4
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
15 |
*
|
16 |
* This class defines all code necessary to run during the plugin's activation.
|
17 |
*
|
18 |
+
* @since 1.0.4
|
19 |
* @package Custom_Widget_Area
|
20 |
* @subpackage Custom_Widget_Area/includes
|
21 |
* @author Your Name <email@example.com>
|
27 |
*
|
28 |
* Long Description.
|
29 |
*
|
30 |
+
* @since 1.0.4
|
31 |
*/
|
32 |
public static function activate() {
|
33 |
|
includes/class-wp-custom-widget-area-deactivator.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Fired during plugin deactivation
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
-
* @since 1.0.
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
@@ -15,7 +15,7 @@
|
|
15 |
*
|
16 |
* This class defines all code necessary to run during the plugin's deactivation.
|
17 |
*
|
18 |
-
* @since 1.0.
|
19 |
* @package Custom_Widget_Area
|
20 |
* @subpackage Custom_Widget_Area/includes
|
21 |
* @author Your Name <email@example.com>
|
@@ -27,7 +27,7 @@ class Custom_Widget_Area_Deactivator {
|
|
27 |
*
|
28 |
* Long Description.
|
29 |
*
|
30 |
-
* @since 1.0.
|
31 |
*/
|
32 |
public static function deactivate() {
|
33 |
|
4 |
* Fired during plugin deactivation
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
+
* @since 1.0.4
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
15 |
*
|
16 |
* This class defines all code necessary to run during the plugin's deactivation.
|
17 |
*
|
18 |
+
* @since 1.0.4
|
19 |
* @package Custom_Widget_Area
|
20 |
* @subpackage Custom_Widget_Area/includes
|
21 |
* @author Your Name <email@example.com>
|
27 |
*
|
28 |
* Long Description.
|
29 |
*
|
30 |
+
* @since 1.0.4
|
31 |
*/
|
32 |
public static function deactivate() {
|
33 |
|
includes/class-wp-custom-widget-area-i18n.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* so that its ready for translation.
|
8 |
*
|
9 |
* @link http://example.com
|
10 |
-
* @since 1.0.
|
11 |
*
|
12 |
* @package Custom_Widget_Area
|
13 |
* @subpackage Custom_Widget_Area/includes
|
@@ -19,7 +19,7 @@
|
|
19 |
* Loads and defines the internationalization files for this plugin
|
20 |
* so that its ready for translation.
|
21 |
*
|
22 |
-
* @since 1.0.
|
23 |
* @package Custom_Widget_Area
|
24 |
* @subpackage Custom_Widget_Area/includes
|
25 |
* @author Your Name <email@example.com>
|
@@ -29,7 +29,7 @@ class Custom_Widget_Area_i18n {
|
|
29 |
/**
|
30 |
* The domain specified for this plugin.
|
31 |
*
|
32 |
-
* @since 1.0.
|
33 |
* @access private
|
34 |
* @var string $domain The domain identifier for this plugin.
|
35 |
*/
|
@@ -38,7 +38,7 @@ class Custom_Widget_Area_i18n {
|
|
38 |
/**
|
39 |
* Load the plugin text domain for translation.
|
40 |
*
|
41 |
-
* @since 1.0.
|
42 |
*/
|
43 |
public function load_plugin_textdomain() {
|
44 |
|
@@ -53,7 +53,7 @@ class Custom_Widget_Area_i18n {
|
|
53 |
/**
|
54 |
* Set the domain equal to that of the specified domain.
|
55 |
*
|
56 |
-
* @since 1.0.
|
57 |
* @param string $domain The domain that represents the locale of this plugin.
|
58 |
*/
|
59 |
public function set_domain( $domain ) {
|
7 |
* so that its ready for translation.
|
8 |
*
|
9 |
* @link http://example.com
|
10 |
+
* @since 1.0.4
|
11 |
*
|
12 |
* @package Custom_Widget_Area
|
13 |
* @subpackage Custom_Widget_Area/includes
|
19 |
* Loads and defines the internationalization files for this plugin
|
20 |
* so that its ready for translation.
|
21 |
*
|
22 |
+
* @since 1.0.4
|
23 |
* @package Custom_Widget_Area
|
24 |
* @subpackage Custom_Widget_Area/includes
|
25 |
* @author Your Name <email@example.com>
|
29 |
/**
|
30 |
* The domain specified for this plugin.
|
31 |
*
|
32 |
+
* @since 1.0.4
|
33 |
* @access private
|
34 |
* @var string $domain The domain identifier for this plugin.
|
35 |
*/
|
38 |
/**
|
39 |
* Load the plugin text domain for translation.
|
40 |
*
|
41 |
+
* @since 1.0.4
|
42 |
*/
|
43 |
public function load_plugin_textdomain() {
|
44 |
|
53 |
/**
|
54 |
* Set the domain equal to that of the specified domain.
|
55 |
*
|
56 |
+
* @since 1.0.4
|
57 |
* @param string $domain The domain that represents the locale of this plugin.
|
58 |
*/
|
59 |
public function set_domain( $domain ) {
|
includes/class-wp-custom-widget-area-loader.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Register all actions and filters for the plugin
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
-
* @since 1.0.
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
@@ -26,7 +26,7 @@ class Custom_Widget_Area_Loader {
|
|
26 |
/**
|
27 |
* The array of actions registered with WordPress.
|
28 |
*
|
29 |
-
* @since 1.0.
|
30 |
* @access protected
|
31 |
* @var array $actions The actions registered with WordPress to fire when the plugin loads.
|
32 |
*/
|
@@ -35,7 +35,7 @@ class Custom_Widget_Area_Loader {
|
|
35 |
/**
|
36 |
* The array of filters registered with WordPress.
|
37 |
*
|
38 |
-
* @since 1.0.
|
39 |
* @access protected
|
40 |
* @var array $filters The filters registered with WordPress to fire when the plugin loads.
|
41 |
*/
|
@@ -44,7 +44,7 @@ class Custom_Widget_Area_Loader {
|
|
44 |
/**
|
45 |
* Initialize the collections used to maintain the actions and filters.
|
46 |
*
|
47 |
-
* @since 1.0.
|
48 |
*/
|
49 |
public function __construct() {
|
50 |
|
@@ -56,7 +56,7 @@ class Custom_Widget_Area_Loader {
|
|
56 |
/**
|
57 |
* Add a new action to the collection to be registered with WordPress.
|
58 |
*
|
59 |
-
* @since 1.0.
|
60 |
* @var string $hook The name of the WordPress action that is being registered.
|
61 |
* @var object $component A reference to the instance of the object on which the action is defined.
|
62 |
* @var string $callback The name of the function definition on the $component.
|
@@ -70,7 +70,7 @@ class Custom_Widget_Area_Loader {
|
|
70 |
/**
|
71 |
* Add a new filter to the collection to be registered with WordPress.
|
72 |
*
|
73 |
-
* @since 1.0.
|
74 |
* @var string $hook The name of the WordPress filter that is being registered.
|
75 |
* @var object $component A reference to the instance of the object on which the filter is defined.
|
76 |
* @var string $callback The name of the function definition on the $component.
|
@@ -85,7 +85,7 @@ class Custom_Widget_Area_Loader {
|
|
85 |
* A utility function that is used to register the actions and hooks into a single
|
86 |
* collection.
|
87 |
*
|
88 |
-
* @since 1.0.
|
89 |
* @access private
|
90 |
* @var array $hooks The collection of hooks that is being registered (that is, actions or filters).
|
91 |
* @var string $hook The name of the WordPress filter that is being registered.
|
@@ -112,7 +112,7 @@ class Custom_Widget_Area_Loader {
|
|
112 |
/**
|
113 |
* Register the filters and actions with WordPress.
|
114 |
*
|
115 |
-
* @since 1.0.
|
116 |
*/
|
117 |
public function run() {
|
118 |
|
4 |
* Register all actions and filters for the plugin
|
5 |
*
|
6 |
* @link http://example.com
|
7 |
+
* @since 1.0.4
|
8 |
*
|
9 |
* @package Custom_Widget_Area
|
10 |
* @subpackage Custom_Widget_Area/includes
|
26 |
/**
|
27 |
* The array of actions registered with WordPress.
|
28 |
*
|
29 |
+
* @since 1.0.4
|
30 |
* @access protected
|
31 |
* @var array $actions The actions registered with WordPress to fire when the plugin loads.
|
32 |
*/
|
35 |
/**
|
36 |
* The array of filters registered with WordPress.
|
37 |
*
|
38 |
+
* @since 1.0.4
|
39 |
* @access protected
|
40 |
* @var array $filters The filters registered with WordPress to fire when the plugin loads.
|
41 |
*/
|
44 |
/**
|
45 |
* Initialize the collections used to maintain the actions and filters.
|
46 |
*
|
47 |
+
* @since 1.0.4
|
48 |
*/
|
49 |
public function __construct() {
|
50 |
|
56 |
/**
|
57 |
* Add a new action to the collection to be registered with WordPress.
|
58 |
*
|
59 |
+
* @since 1.0.4
|
60 |
* @var string $hook The name of the WordPress action that is being registered.
|
61 |
* @var object $component A reference to the instance of the object on which the action is defined.
|
62 |
* @var string $callback The name of the function definition on the $component.
|
70 |
/**
|
71 |
* Add a new filter to the collection to be registered with WordPress.
|
72 |
*
|
73 |
+
* @since 1.0.4
|
74 |
* @var string $hook The name of the WordPress filter that is being registered.
|
75 |
* @var object $component A reference to the instance of the object on which the filter is defined.
|
76 |
* @var string $callback The name of the function definition on the $component.
|
85 |
* A utility function that is used to register the actions and hooks into a single
|
86 |
* collection.
|
87 |
*
|
88 |
+
* @since 1.0.4
|
89 |
* @access private
|
90 |
* @var array $hooks The collection of hooks that is being registered (that is, actions or filters).
|
91 |
* @var string $hook The name of the WordPress filter that is being registered.
|
112 |
/**
|
113 |
* Register the filters and actions with WordPress.
|
114 |
*
|
115 |
+
* @since 1.0.4
|
116 |
*/
|
117 |
public function run() {
|
118 |
|
includes/config.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*plugin configs*/
|
3 |
-
$kz_db_version = '1.0.
|
4 |
$table_name = $wpdb->prefix . 'cwa';
|
5 |
$charset_collate = '';
|
6 |
?>
|
1 |
<?php
|
2 |
/*plugin configs*/
|
3 |
+
$kz_db_version = '1.0.4';
|
4 |
$table_name = $wpdb->prefix . 'cwa';
|
5 |
$charset_collate = '';
|
6 |
?>
|
uninstall.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
21 |
*
|
22 |
* @link http://example.com
|
23 |
-
* @since 1.0.
|
24 |
*
|
25 |
* @package Custom_Widget_Area
|
26 |
*/
|
20 |
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
21 |
*
|
22 |
* @link http://example.com
|
23 |
+
* @since 1.0.4
|
24 |
*
|
25 |
* @package Custom_Widget_Area
|
26 |
*/
|
wp-custom-widget-area.php
CHANGED
@@ -9,14 +9,14 @@
|
|
9 |
* that starts the plugin.
|
10 |
*
|
11 |
* @link http://example.com
|
12 |
-
* @since
|
13 |
* @package Custom widget area
|
14 |
*
|
15 |
* @wordpress-plugin
|
16 |
* Plugin Name: WP Custom Widget area
|
17 |
* Plugin URI: http://kishorkhambu.com.np/plugins/
|
18 |
* Description: A wordpress plugin to create custom dynamic widget area.
|
19 |
-
* Version: 1.0.
|
20 |
* Author: Kishor Khambu
|
21 |
* Author URI: http://kishorkhambu.com.np
|
22 |
* License: GPL-2.0+
|
@@ -60,7 +60,7 @@ require_once plugin_dir_path( __FILE__ ) . 'includes/class-custom-widget-area.ph
|
|
60 |
* then kicking off the plugin from this point in the file does
|
61 |
* not affect the page life cycle.
|
62 |
*
|
63 |
-
* @since 1.0.
|
64 |
*/
|
65 |
function run_plugin_name() {
|
66 |
$plugin = new Custom_Widget_Area();
|
9 |
* that starts the plugin.
|
10 |
*
|
11 |
* @link http://example.com
|
12 |
+
* @since cF
|
13 |
* @package Custom widget area
|
14 |
*
|
15 |
* @wordpress-plugin
|
16 |
* Plugin Name: WP Custom Widget area
|
17 |
* Plugin URI: http://kishorkhambu.com.np/plugins/
|
18 |
* Description: A wordpress plugin to create custom dynamic widget area.
|
19 |
+
* Version: 1.0.4
|
20 |
* Author: Kishor Khambu
|
21 |
* Author URI: http://kishorkhambu.com.np
|
22 |
* License: GPL-2.0+
|
60 |
* then kicking off the plugin from this point in the file does
|
61 |
* not affect the page life cycle.
|
62 |
*
|
63 |
+
* @since 1.0.4
|
64 |
*/
|
65 |
function run_plugin_name() {
|
66 |
$plugin = new Custom_Widget_Area();
|