# fluent-cart/trunk/app/Hooks/Handlers/CPTHandler.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version trunk. 33 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/trunk/code/app/Hooks/Handlers/CPTHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/trunk/raw/app/Hooks/Handlers/CPTHandler.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/trunk/code/app/Hooks/Handlers/CPTHandler.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Hooks\Handlers;

use FluentCart\App\App;

use FluentCart\App\CPT\FluentProducts;

class CPTHandler
{
    /*
    * Add all Custom Post Type classes here to
    * register all of your Custom Post Types.
    */

    public function register()
    {

     //   add_action('init', [$this, 'registerPostTypes']);
    }

    protected $customPostTypes = [
        FluentProducts::class
    ];

    public function registerPostTypes()
    {
        foreach ($this->customPostTypes as $cpt) {
          //  App::make($cpt)->registerPostType();
        }
    }
}

```
