Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/ninja-tables/app/Hooks/Handlers/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/ninja-tables/app/Hooks/Handlers/CPTHandler.php |
<?php
namespace NinjaTables\App\Hooks\Handlers;
use NinjaTables\App\App;
use NinjaTables\App\CPT\NinjaTable;
class CPTHandler
{
/*
* Add all Custom Post Type classes here to
* register all of your Custom Post Types.
*/
protected $customPostTypes = [
NinjaTable::class
];
public function registerPostTypes()
{
foreach ($this->customPostTypes as $cpt) {
App::make($cpt)->registerPostType();
}
}
}