Skip to content

Commit

Permalink
Merge pull request #7440 from Sesquipedalian/integrate_word_censor
Browse files Browse the repository at this point in the history
Adds integrate_word_censor hook
  • Loading branch information
Sesquipedalian committed May 2, 2022
2 parents da1941f + f9f8664 commit 41c8510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Load.php
Original file line number Diff line number Diff line change
Expand Up @@ -3384,6 +3384,8 @@ function censorText(&$text, $force = false)
if ((!empty($options['show_no_censored']) && !empty($modSettings['allow_no_censored']) && !$force) || empty($modSettings['censor_vulgar']) || trim($text) === '')
return $text;

call_integration_hook('integrate_word_censor', array(&$text));

// If they haven't yet been loaded, load them.
if ($censor_vulgar == null)
{
Expand Down

0 comments on commit 41c8510

Please sign in to comment.