In ContentFilters#callback shouldn't the second argument passed to sprintf() be $this->cta and not the $content. As it is now the output would be Before<p>Before</p> and would result in a failing test. 🙂
PHP & JavaScript engineer/ dog enthusiast. He is working on [PluginMachine](https://pluginmachine.com) a framework for WordPress plugin development.🌱🌵🌲
In
ContentFilters#callback
shouldn't the second argument passed tosprintf()
be$this->cta
and not the$content
. As it is now the output would beBefore<p>Before</p>
and would result in a failing test. 🙂Did a quick test in Laravel Playground just to check.
laravelplayground.com/#/snippets/e...
Yes. I used the wrong variable there. I edited the example. Thank you.