PowenKo > WordPress > plugin > change contents

January 29, 2012   ·   0 Comments

plugins\powenkoplugin\powenko.php
it will change content instead ‘foo’ of ‘bar’.

<?php
/*
Plugin Name: powenko plugin
Plugin URI: http://www/powenko.com/
Description: see http://www.powenko.com
Version: 2.5.3
Author: Powen Lp
Author URI: http://www.powenko.com
License: GPLv2 or later
*/
function my_function($text){
 $text=str_replace('foo','bar',$text);
 return $text;
}

wp_enqueue_script('jquery');

add_filter('the_content','my_function');
add_filter('the_title','my_function');
?>
shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Wordpress99

Wordpress

Amazon

adsbygoogle

Recent Posts

Categories

Amazon