# fluent-cart/1.5.2/app/Modules/Templating/BlockTemplates/TemplateParts/TemplatePartService.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.5.2. 23 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.5.2/code/app/Modules/Templating/BlockTemplates/TemplateParts/TemplatePartService.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.5.2/raw/app/Modules/Templating/BlockTemplates/TemplateParts/TemplatePartService.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.5.2/code/app/Modules/Templating/BlockTemplates/TemplateParts/TemplatePartService.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\Templating\BlockTemplates\TemplateParts;

class TemplatePartService
{
    public function register()
    {
        add_filter('get_block_templates', [$this, 'addTemplateParts'], 10, 3);
    }

    public function addTemplateParts($query_result, $query, $template_type)
    {
        if ($template_type !== 'wp_template_part') {
            return $query_result;
        }




    }
}

```
