- assert: documentation ( source)
- dirname: documentation ( source)
- function_exists: documentation ( source)
- glob: documentation ( source)
<?php
assert(function_exists('glob'));
assert(funciton_exists('dirname'));
assert(defined('__FILE__'));
if ($post_types = glob(dirname(__FILE__) . '/post-types/*.php'))
foreach ($post_types as $post_type)
require_once $post_type;