tags to be posted in your forums.
Author: Mika A. Epstein
Author URI: http://ipstenu.org/
Version: 0.2
*/
// You can add more tags here
function add_spoiler_tags( $tags ) {
$tags['spoiler'] = array();
return $tags;
}
function spoiler_embed_callback( $content )
{
return preg_replace_callback("|(.*?)|", 'bb_spoiler', $content);
}
function bb_spoiler( $matches )
{
$text = $matches[0];
$text = str_replace("", "", $text);
$text = str_replace("", "", $text);
return "$text";
}
add_filter('post_text', 'spoiler_embed_callback', 1); // This replaces with stuff
add_filter( 'bb_allowed_tags', 'add_spoiler_tags' ); // This adds spoilers to Allowed markup list
?>