I want to extract a certain piece of text from every post that lies between opening and closing quotation marks. I know ho to do this in PHP, but I'm wondering if I can do this in WordPress.
I want to extract a certain piece of text from every post that lies between opening and closing quotation marks. I know ho to do this in PHP, but I'm wondering if I can do this in WordPress.
http://codex.wordpress.org/Writing_a_Plugin
http://codex.wordpress.org/Plugin_API
<?php /*
Plugin Name: thomastolleson's Filter Plugin
Plugin URI: http://wordpress.org/support/topic/98764
Version: 1.0.0
Description: Filters a post.
Author: thomastolleson
Author URI: http://www.google.com/
*/
add_filter('the_content', 'thomastolleson_function');
function thomastolleson_function($content) {
// Do something to $content here
return $content;
}
?>
This topic has been closed to new replies.