Brain Monkey defines [all the hook-related WP functions](https://github.com/Brain-WP/BrainMonkey/blob/master/inc/wp-hook-functions.php), making them work out of the box. WordPress 6.1.0 introduced [`did_filter()`](https://developer.wordpress.org/reference/functions/did_filter/), we should define this as well.