| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentBoards\App\Hooks\Handlers; |
| 4 |
|
| 5 |
use FluentBoards\App\App; |
| 6 |
|
| 7 |
class CPTHandler |
| 8 |
{ |
| 9 |
/* |
| 10 |
* Add all Custom Post Type classes here to |
| 11 |
* register all of your Custom Post Types. |
| 12 |
*/ |
| 13 |
|
| 14 |
protected $customPostTypes = [ |
| 15 |
// ExampleCPT::class |
| 16 |
]; |
| 17 |
|
| 18 |
public function registerPostTypes() |
| 19 |
{ |
| 20 |
foreach ($this->customPostTypes as $cpt) { |
| 21 |
App::make($cpt)->registerPostType(); |
| 22 |
} |
| 23 |
} |
| 24 |
} |
| 25 |
|