File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
Description: Adds a text-like widget that allows you to write shortcode in it. (Just whats missing in the default text widget)
6
6
Author: gagan0123
7
7
Author URI: http://gagan.pro/
8
- Version: 0.2
8
+ Version: 0.3
9
9
Text Domain: shortcode-widget
10
10
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
11
*/
@@ -23,4 +23,9 @@ function shortcode_widget_load_text_domain(){
23
23
load_plugin_textdomain ( SHORTCODE_WIDGET_TEXT_DOMAIN , false , dirname ( plugin_basename ( __FILE__ ) ) . '/languages/ ' );
24
24
}
25
25
add_action ('plugins_loaded ' ,'shortcode_widget_load_text_domain ' );
26
+
27
+ add_shortcode ('shortcode_widget_test ' , 'shortcode_widget_test_output ' );
28
+ function shortcode_widget_test_output ($ args ){
29
+ return "It works " ;
30
+ }
26
31
?>
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Contributors: gagan0123
3
3
Tags: Shortcode, Widget
4
4
Requires at least: 3.3
5
5
Tested up to: 3.5.1
6
- Stable tag: 0.2
6
+ Stable tag: 0.3
7
7
License: GPLv2 or later
8
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
9
@@ -21,4 +21,5 @@ Adds a text-like widget that allows you to write shortcode in it. (Just whats mi
21
21
22
22
== Changelog ==
23
23
0.1 Added the shortcode widget
24
- 0.2 Added translation support
24
+ 0.2 Added translation support
25
+ 0.3 Added a shortcode for testing the plugin '[shortcode_widget_test]'
You can’t perform that action at this time.
0 commit comments