Changeset 1021995
- Timestamp:
- 11/08/2014 11:36:01 AM (11 years ago)
- Location:
- plugin-sample-shortcode/trunk
- Files:
-
- 1 added
- 3 edited
-
includes/class-wp-pss-shortcode.php (added)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-sample-shortcode.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-sample-shortcode/trunk/index.php
r1021075 r1021995 1 1 <?php 2 2 //Silence is golden 3 ?> -
plugin-sample-shortcode/trunk/readme.txt
r1021075 r1021995 1 1 === Plugin Sample Shortcode === 2 2 Contributors: dipendrapancholi 3 Tags: Plugin, shortcode, Sample shortcode, sample plugin shortcode, sample plugin 3 Tags: Plugin, shortcode, Sample shortcode, sample plugin shortcode, sample plugin, shortcode plugin 4 4 Donate link: 5 Requires at least: 3. 85 Requires at least: 3.5 6 6 Tested up to: 4.0 7 7 Stable tag: 2.2.4 … … 13 13 == Description == 14 14 15 In this plugin we have create a shoortcode only for sample. 15 The Plugin Sample Shortcode is a simple plugin for shortcode tutorial. How to use shortcode. 16 17 **Features of this plugin include:** 18 * Process Shortcode 19 20 == Screenshots == 21 22 == Installation == 23 24 = Minimum Requirements = 25 - WordPress 3.5 or greater 26 - PHP version 5.2.4 or greater 27 - MySQL version 5.0 or greater 28 29 30 = Manual Installation = 31 The manual installation requires you to download the plugin from WordPress.org and uploading it to your webserver using your favorite FTP application. 32 33 1. Download the Plugin Sample Shortcode 34 2. Unzip the file and upload the plugin-sample-shortcode folder to the /wp-content/plugins/ directory using your FTP application 35 3. Activate the Plugin Sample Shortcode plugin through the 'Plugins' menu in WordPress 36 37 38 = Version 1.0.1 (2014-11-08) = 39 * Update coding standared 40 * change shortcode from "wp_pss" to "wp_pss_sample" 41 * Add parameter to shortcode 42 = Version 1.0.0 (2014-11-06) = 43 * Initial Release -
plugin-sample-shortcode/trunk/wp-sample-shortcode.php
r1021075 r1021995 4 4 * Plugin URI: http://www.wordpress.org/ 5 5 * Description: In this plugin we have create a shoortcode only for sample. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Dipendra Pancholi 8 8 * Author URI: http://wordpress.org … … 94 94 } 95 95 96 /** 97 * shortcode simple tutorial 98 * 99 * @package Plugin Sample Shortcode 100 * @since 1.0.0 101 */ 102 function wp_pss_shortcode( $atts ) { 103 104 $atts = shortcode_atts( array( 105 'param1' => 'parameter 1', 106 'param2' => 'parameter 2' 107 ), $atts ); 96 //Global variables 97 global $wp_pss_shortcode; 108 98 109 return "param1 = {$atts['param1']}"; 110 } 99 //Shortcode related functionality 100 require_once( WP_PSS_DIR . '/includes/class-wp-pss-shortcode.php' ); 101 $wp_pss_shortcode = new Wp_Pss_Shortcodes(); 102 $wp_pss_shortcode->add_hooks(); 111 103 112 add_shortcode( 'wp_pss', 'wp_pss_shortcode' );113 104 }
Note: See TracChangeset
for help on using the changeset viewer.