Adding own BBCode
-
I wanted to add the [code] tag to the bbcode function.
Here's what I changed:
wp_bbcode['in']:
'#\[code](.+?)]\[/code]#is', // Code tag
wp_bbcode['out']:
'<div class=\"code\">$1</div>', // Code
Any ideas?
Edit: Oh, right... yeah it doesn't work. ?? I added this in /wp-includes/var.php above the two commented out e-mail tags (by default...)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding own BBCode’ is closed to new replies.