Replaces user-defined keywords in a blog post with the output from the corresponding user-defined PHP function.
This is a quick hack, not extensively tested but it seems to work for me.
WordPress already adds the
tags around the [[keyword]] before the plugin is called -- the plugin doesn't remove those.
You can't use " and ' (and possibly a handful of other characters) in parameters because WordPress replaces them with curly quotes before the plugin has a chance to parse them. You can use spaces, though.
Maybe pass an $is_rss parameter instead of using 2 separate functions?
Maybe change syntax to: ?!
Version 1.1 (8 June 2007) - The parameter separator is now ][ instead of |. Added macro_rss_* functions for the RSS content.
Version 1.0 (7 June 2007) - First version
Written by Matthijs Hollemans
Requires: 2.0 or higher
Compatible up to: 2.2
Last Updated: 8 years ago
Active Installs: 100+
Got something to say? Need help?