diff --git a/index.php b/index.php index 764f1ac..294c9f0 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ Description: Adds a text-like widget that allows you to write shortcode in it. (Just whats missing in the default text widget) Author: gagan0123 Author URI: http://gagan.pro/ -Version: 0.2 +Version: 0.3 Text Domain: shortcode-widget License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ @@ -23,4 +23,9 @@ function shortcode_widget_load_text_domain(){ load_plugin_textdomain( SHORTCODE_WIDGET_TEXT_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action('plugins_loaded','shortcode_widget_load_text_domain'); + +add_shortcode('shortcode_widget_test', 'shortcode_widget_test_output'); +function shortcode_widget_test_output($args){ + return "It works"; +} ?> \ No newline at end of file diff --git a/readme.txt b/readme.txt index cdeba09..70bc943 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: gagan0123 Tags: Shortcode, Widget Requires at least: 3.3 Tested up to: 3.5.1 -Stable tag: 0.2 +Stable tag: 0.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -21,4 +21,5 @@ Adds a text-like widget that allows you to write shortcode in it. (Just whats mi == Changelog == 0.1 Added the shortcode widget -0.2 Added translation support \ No newline at end of file +0.2 Added translation support +0.3 Added a shortcode for testing the plugin '[shortcode_widget_test]' \ No newline at end of file