/ Published in: PHP

Follow me on twitter flexible user and message
Add to post [twitter username='VeronicaDjeneva']Follow me Somebody[/twitter]
Add to post [twitter username='VeronicaDjeneva']Follow me Somebody[/twitter]
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* Plugin Name: Twitter Shower Plugin URI: http://www.scoldy.com Discription: Simple shortcode Version: 1.0 Author: Ronnie Author URI: http://www.scoldy.com */ add_shortcode('twitter', function($atts,$content) { return '<a href="http://twitter.com/' .$atts['username'].'">' .$content.'</a>'; }); ?>
Comments
