- dirname: documentation ( source)
- glob: documentation ( source)
- touch: documentation ( source)
<?php
touch('~/post-types/foo.php');
touch('~/post-types/bar.php');
if ($post_types = glob(dirname(__FILE__) . '/post-types/*.php'))
foreach ($post_types as $post_type)
require_once $post_type;