| 1 |
<?php |
| 2 |
|
| 3 |
namespace RexTheme\WPVR\Admin; |
| 4 |
|
| 5 |
/** |
| 6 |
* Standalone wrapper for the legacy WPVR_Post_Type class. |
| 7 |
* |
| 8 |
* Registers the wpvr_item custom post type using the legacy class. |
| 9 |
* Can be used independently; Bootstrap delegates this to Wpvr_Admin in Phase 1. |
| 10 |
*/ |
| 11 |
class PostType { |
| 12 |
|
| 13 |
private $legacy; |
| 14 |
|
| 15 |
public function __construct() { |
| 16 |
require_once WPVR_PLUGIN_LEGACY_DIR_PATH . 'admin/classes/class-wpvr-post-type.php'; |
| 17 |
$this->legacy = new \WPVR_Post_Type( 'wpvr', WPVR_VERSION, 'wpvr_item' ); |
| 18 |
} |
| 19 |
} |
| 20 |
|