Is it possible to add a filter within the Conditions::check method?

Hi everyone,

I’m Darshan Hiranandani, working on a project where I need to incorporate a filter into the Conditions::check method. I’m curious to know if it’s possible to add a filter within this method and how it might be done.

Could anyone provide suggestions or guidance on:

  • Whether it’s feasible to add a filter inside the Conditions::check method?
  • How to properly integrate a filter into this method?
  • Any potential implications or best practices for doing so?

I appreciate any insights or examples you can share!

Regards
Darshan Hiranandani

Hi @darshanhiranandani ,

Please check our documentation

You should be able to add your custom condition via these hooks

bricks/conditions/groups
bricks/conditions/options
bricks/conditions/result

Regards,
Jenn

It’s a bot, not a real user.

1 Like