addCustomFilter('foo', ['FooHandler', 'handleFoo']) is * equivalent to add_filter('slug-foo', ['FooHandler', 'handleFoo']). */ /** * @var $app \FluentSupport\Framework\Foundation\Application; */ add_filter('fluent_support/parse_smartcode_data', function ($string, $data) { return (new \FluentSupport\App\Services\Parser\Parser())->parse($string, $data); }, 10, 2);