From 21a0498a30f3de1e6236d73d0e8e7619aca86df7 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 5 Oct 2016 17:21:32 -0700 Subject: new hook bbcode_filter --- include/bbcode.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/bbcode.php b/include/bbcode.php index 3e942f4a5..6a58475d0 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -516,6 +516,9 @@ function bb_fixtable_lf($match) { function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) { + + call_hooks('bbcode_filter', $Text); + // Hide all [noparse] contained bbtags by spacefying them if (strpos($Text,'[noparse]') !== false) { $Text = preg_replace_callback("/\[noparse\](.*?)\[\/noparse\]/ism", 'bb_spacefy',$Text); -- cgit v1.2.3