Added a logic for defining bbcodes that, instead of an HTML replacement, calls for the result of an arbitrary PHP function.