src/Route/Route.php
protected function parseConditionParams(array $action): array
    {
        if (empty($this->condition)) {
            return [];
        }

        $params = Arr::first($action, function ($value, $key) {
            return is_numeric($key);
        });

        return [$params];
    }
protected function parseConditionParams(array $action): array
    {
        if (empty($this->condition)) {
            return [];
        }

        $params = Arr::first($action, function ($value, $key) {
            return is_numeric($key);
        });

        return [$params];
    }
protected function parseConditionParams ( array $ action ) : array { if ( empty ( $ this -> condition ) ) { return [ ] ; } $ params = Arr :: first ( $ action , function ( $ value , $ key ) { return is_numeric ( $ key ) ; } ) ; return [ $ params ] ; }
Parse route action and get any WordPress conditional parameters
if any defined.

@param array $action

@return array
Parse route action and get any WordPress conditional parameters if any defined .