We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5d831 commit 772fbf5Copy full SHA for 772fbf5
src/Decorators/Filter.php
@@ -225,7 +225,9 @@ protected function fire_hook( mixed ...$args ): mixed {
225
protected function get_cb_args( array $args ): array {
226
if ( $this->params ) {
227
foreach ( $this->params as $param ) {
228
- $args[] = $this->container->get( $param );
+ $args[] = ! \str_starts_with( $param, '!value:' )
229
+ ? $this->container->get( $param )
230
+ : \str_replace( '!value:', '', $param );
231
}
232
233
$args[] = $this;
0 commit comments